Merge pull request #56 from clarketm/dependabot/github_actions/action… #150
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python package | |
on: [pull_request, push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
python-version: [3.8, 3.12] # oldest and most recent version supported | |
runs-on: [macos-latest, ubuntu-latest] | |
runs-on: ${{ matrix.runs-on }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
make install-deps-dev | |
- name: Format with black | |
run: | | |
make format-check | |
- name: Lint with flake8 | |
run: | | |
make lint | |
- name: Test with pytest | |
run: | | |
make test |