Skip to content

Commit

Permalink
Update test workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
uschmidt83 committed Apr 25, 2024
1 parent c537d2e commit 6235cfa
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: "Run tests"
description: "Run tests with pytest."

inputs:
python-version:
description: "The version of Python to use."
required: true
install-packages:
description: "The packages to install before running the tests."
required: true
default: "'.[test]'"

Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
platform: [ubuntu-latest, windows-latest, macos-13]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/test
- name: Checkout repository
uses: actions/checkout@v4

- name: Run tests
uses: ./.github/actions/test
with:
python-version: ${{ matrix.python-version }}
9 changes: 6 additions & 3 deletions .github/workflows/test_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
platform: [ubuntu-latest, windows-latest, macos-13]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/test
- name: Checkout repository
uses: actions/checkout@v4

- name: Run tests
uses: ./.github/actions/test
with:
python-version: ${{ matrix.python-version }}
install-packages: "'stardist-napari[test]'"

0 comments on commit 6235cfa

Please sign in to comment.