Fix linting: address failing workflows on github #12
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: CI | |
# Controls when the workflow will run | |
on: [push, pull_request] | |
jobs: | |
linter: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.9] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install project | |
run: make install | |
- name: Run linter | |
run: make lint | |
tests_linux: | |
needs: linter | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.9] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages | |
run: sudo apt-get install doxygen xsltproc | |
- name: Install project | |
run: make install | |
- name: Run tests | |
run: make test | |
- name: "Upload coverage to Codecov" | |
uses: codecov/codecov-action@v3 | |
# with: | |
# fail_ci_if_error: true | |
tests_mac: | |
needs: linter | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.9] | |
os: [macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install doxygen | |
run: brew install doxygen | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install project | |
run: make install | |
- name: Run tests | |
run: make test | |
# tests_win: | |
# needs: linter | |
# strategy: | |
# fail-fast: false | |
# matrix: | |
# python-version: [3.9] | |
# os: [windows-latest] | |
# runs-on: ${{ matrix.os }} | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - uses: actions/setup-python@v4 | |
# with: | |
# python-version: ${{ matrix.python-version }} | |
# - name: Install Pip | |
# run: python.exe -m pip install --user --upgrade pip | |
# - name: Install project | |
# run: pip install -e .[test] | |
# - name: run tests | |
# run: pytest -s -vvvv -l --tb=long tests |