Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
- pytest does not need doc dependencies
- removed dry-run for publish
  • Loading branch information
d-chris committed Jan 3, 2024
1 parent bc9005a commit e0d1931
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --without dev
poetry install --without dev,doc
- name: Build and publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: |
poetry version $(git describe --tags)
poetry build
poetry publish --dry-run --username __token__ --password $PYPI_TOKEN
poetry publish
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
poetry install --without doc
- name: Test with pytest
run: |
poetry run pytest

0 comments on commit e0d1931

Please sign in to comment.