Skip to content

Commit

Permalink
GitHub workflows: Run tests before publishing to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
mebeim committed Mar 20, 2024
1 parent 7798a4f commit 81946fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ concurrency:
cancel-in-progress: false

jobs:
test-before-publish:
uses: ./.github/workflows/test.yml
publish:
needs: [test-before-publish]
runs-on: ubuntu-latest
environment:
name: hatch
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
strategy:
matrix:
# Python 3.6 is unavailable on ubuntu-22.04, ignore it for now
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install test dependencies
Expand Down

0 comments on commit 81946fb

Please sign in to comment.