diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index e190926..4239bd5 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -21,15 +21,6 @@ jobs: pip install setuptools wheel twine pip install -e .[docs] - - name: Build and publish to PyPI - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py sdist bdist_wheel - twine check dist/* - twine upload dist/* - - name: Build docs run: sphinx-build -b html docs/ ./public @@ -38,3 +29,12 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./public + + - name: Build and publish to PyPI + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine check dist/* + twine upload dist/* diff --git a/.github/workflows/test-main.yml b/.github/workflows/test-main.yml index 62fe644..a2c8c7c 100644 --- a/.github/workflows/test-main.yml +++ b/.github/workflows/test-main.yml @@ -27,11 +27,10 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine pip install -e .[dev] - name: Pylint - run: pylint --fail-under=8 voxelgym2D + run: pylint --fail-under=9 voxelgym2D - name: Mypy run: mypy voxelgym2D @@ -45,6 +44,6 @@ jobs: - name: Pytest run: | coverage run --source voxelgym2D -m pytest tests/ - coverage report + coverage report -m