dynamic valve calibration times #1204
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: iblrigv8 CI | |
on: | |
push: | |
branches: [iblrigv8] | |
paths-ignore: | |
- 'docs/**' | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
jobs: | |
ruff: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: chartboost/ruff-action@v1 | |
name: ruff check | |
with: | |
args: 'check --output-format=github' | |
- uses: chartboost/ruff-action@v1 | |
name: ruff format | |
with: | |
args: 'format --check' | |
tests: | |
name: build (${{ matrix.python-version }}, ${{ matrix.os }}) | |
needs: ruff | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "windows-latest"] | |
python-version: ["3.10"] | |
steps: | |
- name: Checkout iblrig repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
cache-dependency-path: 'pyproject.toml' | |
- name: install requirements | |
shell: bash -l {0} | |
run: | | |
pip install --editable .[DEV] | |
- name: Install audio library (Ubuntu only) | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get install -y libportaudio2 | |
- name: iblrig unit tests | |
run: | | |
coverage run -m unittest discover -s ./iblrig/test -t . | |
coverage xml | |
- name: coveralls.io | |
uses: coverallsapp/github-action@v2 | |
with: | |
flag-name: ${{ matrix.python-version }}, ${{ matrix.os }} | |
parallel: true | |
file: coverage.xml | |
compare-ref: iblrigv8 | |
- name: Generate requirements_frozen.txt | |
run: pip freeze > requirements_frozen.txt | |
- name: Store frozen requirements as artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: requirements_frozen | |
path: requirements_frozen.txt | |
finish: | |
needs: [ruff, tests] | |
if: ${{ always() }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished | |
uses: coverallsapp/github-action@v2 | |
with: | |
parallel-finished: true |