summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 18cdc06..4071231 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -73,8 +73,13 @@ jobs:
73 run: poetry run maturin develop --release 73 run: poetry run maturin develop --release
74 74
75 - name: Run Python tests 75 - name: Run Python tests
76 if: matrix.python-version != 3.5
76 run: poetry run pytest -vv --color=yes 77 run: poetry run pytest -vv --color=yes
77 78
79 - name: Run Python tests (skip typestub tests)
80 if: matrix.python-version == 3.5
81 run: poetry run pytest -vv --color=yes --ignore=tests/test_typestubs.py
82
78 python-publish: 83 python-publish:
79 needs: build 84 needs: build
80 runs-on: ${{ matrix.os }} 85 runs-on: ${{ matrix.os }}
@@ -138,7 +143,7 @@ jobs:
138 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 143 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
139 144
140 - name: PyPi publish 145 - name: PyPi publish
141 if: startsWith(github.ref, 'refs/tags/') 146 if: github.event_name == 'release' && github.event.action == 'created'
142 env: 147 env:
143 MATURIN_PASSWORD: ${{ secrets.PYPI }} 148 MATURIN_PASSWORD: ${{ secrets.PYPI }}
144 run: poetry run maturin publish --interpreter python${{matrix.python_version}} --username __token__ 149 run: poetry run maturin publish --interpreter python${{matrix.python_version}} --username __token__