Skip to content

Commit

Permalink
Test on both major Datasette versions
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Apr 26, 2024
1 parent 4abb7c3 commit d2fabde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:

jobs:
test:
runs-on: ubicloud
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
Expand All @@ -28,7 +28,7 @@ jobs:
run: |
pytest
deploy:
runs-on: ubicloud
runs-on: ubuntu-latest
needs: [test]
environment: release
permissions:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
datasette-version: ["<1.0", ">=1.0a13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -22,6 +23,7 @@ jobs:
- name: Install dependencies
run: |
pip install '.[test]'
pip install "datasette${{ matrix.datasette-version }}"
- name: Run tests
run: |
if [ -d tests/ ]; then
Expand Down

0 comments on commit d2fabde

Please sign in to comment.