Skip to content

Update pythonpackage.yml #6

Update pythonpackage.yml

Update pythonpackage.yml #6

Workflow file for this run

Check failure on line 1 in .github/workflows/pythonpackage.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pythonpackage.yml

Invalid workflow file

you may only define one of `paths` and `paths-ignore` for a single event
name: Python CI - pystest
on:
push:
branches: [ "main" ]
paths:
- '**.py'
paths-ignore:
- 'docs/**'
- 'dev/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
pip install -r requirements.txt
- name: Test with pytest
run: |
pytest