Skip to content

Commit

Permalink
Maintenance: refresh GitHub Actions workflows (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison authored Dec 9, 2024
1 parent 137efdd commit f92d36c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ on:

jobs:
test:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
- run: pip install black
- run: black pywisetransfer test
8 changes: 6 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ on:

jobs:
test:
permissions:
contents: read
environment: release-live
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
- run: pip install poetry
- run: poetry config pypi-token.pypi ${{ secrets.PYPI_API_KEY }}
- run: poetry publish --build
8 changes: 6 additions & 2 deletions .github/workflows/publish-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ on:

jobs:
test:
permissions:
contents: read
environment: release-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
- run: pip install poetry
- run: poetry config repositories.testpypi https://test.pypi.org/legacy/
- run: poetry config pypi-token.testpypi ${{ secrets.TEST_PYPI_API_KEY }}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ on:

jobs:
test:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
- run: pip install .[dev]
- run: pytest

0 comments on commit f92d36c

Please sign in to comment.