Skip to content

Commit

Permalink
Update run-tests.yml
Browse files Browse the repository at this point in the history
try other conditional
  • Loading branch information
egrace479 authored Jul 31, 2024
1 parent 1879d13 commit e513b4e
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,25 @@ on:
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.12"]
include:
- if: github.event.pull_request
python-version: |
- 3.8
- 3.9
- 3.10
- 3.11

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

- name: Set up Python ${{ matrix.python-version }}
- name: PR test ${{ python-version }}
if: github.event.pull_request
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: |
- ["3.8", "3.9", "3.10", "3.11"]
- name: install dependencies
run: pip install .[dev]
shell: bash

- name: test ${{ python-version }}
uses: actions/setup-python@v5
with:
python-version: |
- ["3.7", "3.12"]
- name: run tests
run: pytest
run: |
pip install .[dev]
pytest
shell: bash

0 comments on commit e513b4e

Please sign in to comment.