Skip to content

Commit

Permalink
Update run-tests.yml
Browse files Browse the repository at this point in the history
Set different python versions for pushes and PRs
  • Loading branch information
egrace479 authored Jul 31, 2024
1 parent 13de651 commit fed92e6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,20 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
- name: PR set up Python ${{ matrix.python-version }}
if: github.event.pull_request
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Push set up Python
if: github.event.push
uses: actions/setup-python@v5
with:
python-version: |
- 3.7
- 3.12
- name: install dependencies
run: pip install .[dev]
shell: bash
Expand Down

0 comments on commit fed92e6

Please sign in to comment.