[pre-commit.ci] pre-commit autoupdate #661
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: format check and runs tests | |
on: | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build_and_tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
os: [ubuntu-20.04, macos-13, macos-14, windows-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Set up ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: install gustaf | |
run: | | |
pip install .[test] | |
- name: prepare test and test | |
run: | | |
python3 -m pip install pytest | |
pytest tests |