Literature page lists titles, then authors #84
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
# test_src.yml | |
# Run the same tests that would be done locally with `make test`. | |
name: CI-src | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
max-parallel: 4 | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
python-version: | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install package | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install ".[tests]" | |
python -m pip list --format=freeze | |
- name: Lint code | |
# TEMP: do not lint in 3.12 until black and flake8 reconcile. | |
if: ${{ matrix.python-version < 3.12 }} | |
run: | | |
python -m flake8 src | |
python -m flake8 tests | |
- name: Run tests | |
run: | | |
python -m pytest --cov opinf tests |