Skip to content

Commit

Permalink
V0.1.x (LineaLabs#651)
Browse files Browse the repository at this point in the history
* speed up a test as a sample change.

* restrict nbconvert because the new one is a pre-release that does not have a built version and is a hassle to set up.

* check out the right branch when publishing. change test_import snapshot to speed it up (need something to trigger a run).

* remove unused snapshots

* flip the publish to a normal trigger instead of workflow_call. add ignores for build folder

* github runners dont seem to have wheels installed.

* sigh neither is twine. install that as well.
  • Loading branch information
lionsardesai authored May 20, 2022
1 parent c9e6d18 commit 69e0cbe
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 4,330 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Publish

on:
workflow_run:
workflows: [Python]
types: [completed]
push:
branches:
- "v[0-9]+.[0-9]+.x"
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
build-n-publish:
Expand All @@ -23,10 +23,10 @@ jobs:
python setup.py install && rm -rf build dist
- name: Build Wheels
run: |
python setup.py sdist bdist_wheel
pip install wheel && python setup.py sdist bdist_wheel
- name: Check build
run: |
twine check dist/*
pip install twine && twine check dist/*
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ relative_files = true

[tool.mypy]

exclude = '(/__snapshots__/|sliced_housing_dag*.py|tutorials/.*|integration/slices/.*|integration/sources/.*|integration/envs/.*|/outputs/)$'
exclude = '(/__snapshots__/|sliced_housing_dag*.py|tutorials/.*|integration/slices/.*|integration/sources/.*|integration/envs/.*|/outputs/|/build/)$'

# https://docs.sqlalchemy.org/en/14/orm/extensions/mypy.html
# https://pydantic-docs.helpmanual.io/mypy_plugin/#enabling-the-plugin
Expand Down
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ addopts =
--ignore-glob "tests/integration/sources/*"
--ignore-glob "tests/integration/envs/*"
--ignore-glob "examples/tutorials/output/*"
--ignore-glob "build/*"
-m "not airflow and not integration"
--nbval
--doctest-modules
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def version(path):
"IPython>=7.0.0",
"jinja2",
"nbformat",
"nbconvert",
"nbconvert<7.0.0",
"requests",
]

Expand Down
Loading

0 comments on commit 69e0cbe

Please sign in to comment.