From 25684535e85a8bbb05b65b0da2304273d1d90ca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81rni=20Dagur?= Date: Mon, 27 Jul 2020 20:35:50 +0000 Subject: Update upstream library to 0.3.0, respond to API changes (#10) * Update upstream library to 0.3.0, respond to API changes * Change pypi publishing criteria in CI * Create test to make sure the version numbers are the same everywhere --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.github') 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: run: poetry run maturin develop --release - name: Run Python tests + if: matrix.python-version != 3.5 run: poetry run pytest -vv --color=yes + - name: Run Python tests (skip typestub tests) + if: matrix.python-version == 3.5 + run: poetry run pytest -vv --color=yes --ignore=tests/test_typestubs.py + python-publish: needs: build runs-on: ${{ matrix.os }} @@ -138,7 +143,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: PyPi publish - if: startsWith(github.ref, 'refs/tags/') + if: github.event_name == 'release' && github.event.action == 'created' env: MATURIN_PASSWORD: ${{ secrets.PYPI }} run: poetry run maturin publish --interpreter python${{matrix.python_version}} --username __token__ -- cgit v1.2.3