Skip to content

Commit 5454f2c

Browse files
committed
Fix GitHub Actions workflows for tests and PyPI publishing
1 parent 316698f commit 5454f2c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/publish-to-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ jobs:
99
runs-on: ubuntu-latest
1010
permissions:
1111
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
12+
contents: read
1213
steps:
1314
- uses: actions/checkout@v3
1415
- name: Set up Python
1516
uses: actions/setup-python@v4
1617
with:
17-
python-version: '3.x'
18+
python-version: '3.10'
1819
- name: Install Hatch
1920
run: |
2021
python -m pip install --upgrade pip
@@ -24,4 +25,3 @@ jobs:
2425
hatch build
2526
- name: Publish package
2627
uses: pypa/gh-action-pypi-publish@release/v1
27-
# No credentials needed for trusted publishing

.github/workflows/python-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ jobs:
2424
run: |
2525
python -m pip install --upgrade pip
2626
pip install hatch
27-
- name: Run checks
27+
- name: Run tests
2828
run: |
29-
hatch run check-all
29+
hatch run test

0 commit comments

Comments
 (0)