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: