Skip to content

Update run-tests.yml #105

Update run-tests.yml

Update run-tests.yml #105

Workflow file for this run

name: run-tests
on:
pull_request:
push:
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.12"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: PR set up Python
if: github.event.pull_request
uses: actions/setup-python@v5
with:
python-version: '>=3.7'
- name: Push set up Python ${{ matrix.python-version }}
if: github.event.push
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: install dependencies
run: pip install .[dev]
shell: bash
- name: run tests
run: pytest
shell: bash