From 699152a2f2b736bdf16807424d80645efa10a699 Mon Sep 17 00:00:00 2001 From: Hans Dembinski Date: Tue, 11 Jan 2022 00:06:20 +0100 Subject: [PATCH] CI fixes (#6) --- .github/workflows/publish.yml | 17 +++++++++++++---- .github/workflows/sphinx.yml | 2 ++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 43e13b6..9544684 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,3 +1,5 @@ +name: publish + on: release: types: [published] @@ -15,10 +17,17 @@ jobs: with: python-version: '3.9' - - run: python -m pip install --upgrade pip wheel - - run: python setup.py sdist bdist_wheel - - run: python -m pip install dist/jacobi-*.whl[test] - - run: python -m pytest + - run: | + python -m pip install --upgrade pip wheel + python -m pip install -e . + python setup.py sdist bdist_wheel + + - run: | + python -m venv test + ./test/bin/activate + ls dist + python -m pip install $(echo dist/jacobi-*.whl)'[test]' + python -m pytest - uses: pypa/gh-action-pypi-publish@master if: github.ref_type == 'tag' diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 4031b8a..ef850f8 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -1,3 +1,5 @@ +name: doc + on: pull_request: push: