Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: "Python Package"
name: "Run Python Checks"

on:
pull_request:
branches:
- 'main'
push:
branches:
- main
Expand All @@ -10,28 +14,22 @@ jobs:
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@v3

- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev,test]

pip install .[dev,test]
- name: Run linting
run: |
python -m flake8 -v --config .flake8 --black-config pyproject.toml --show-source
continue-on-error: true

- name: Run tests
- name: Run unit tests
run: |
python -m pytest -vvv --cov --cov-context=test --cov-report=xml
Loading