Skip to content

Commit

Permalink
Merge pull request #95 from kelle/python-matrix
Browse files Browse the repository at this point in the history
Test many Python versions
  • Loading branch information
dr-rodriguez authored Dec 11, 2024
2 parents b2f10a8 + c0db803 commit 286382a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

permissions:
contents: read
Expand All @@ -16,20 +17,23 @@ jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install astrodbkit
pip install astrodb_utils
pip install lsst-felis
pip install pytest pytest-cov
- name: Test with pytest
run: |
pytest --cov=schema tests

0 comments on commit 286382a

Please sign in to comment.