Skip to content

Commit

Permalink
Restructured workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
harisankar95 committed Feb 28, 2024
1 parent 23c88c9 commit 605493e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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/*
5 changes: 2 additions & 3 deletions .github/workflows/test-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -45,6 +44,6 @@ jobs:
- name: Pytest
run: |
coverage run --source voxelgym2D -m pytest tests/
coverage report
coverage report -m

0 comments on commit 605493e

Please sign in to comment.