move to pyproject.toml #689
Workflow file for this run
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] | |
pull_request: | |
branches: [iblrigv8] | |
jobs: | |
tests: | |
name: build (${{ matrix.python-version }}, ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "windows-latest"] | |
python-version: ["3.10"] | |
steps: | |
- name: Checkout iblrig repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
cache-dependency-path: 'pyproject.toml' | |
- name: flake8 | |
run: | | |
pip install --upgrade pip | |
pip install flake8 --quiet | |
python -m flake8 | |
- name: iblrig and iblpybpod requirements | |
shell: bash -l {0} | |
run: | | |
pip install --editable . | |
- name: Install audio library (Ubuntu only) | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get install -y libportaudio2 | |
- name: Install Bonsai (Windows only) | |
if: matrix.os == 'windows-latest' | |
shell: pwsh -l {0} | |
run: | | |
cd Bonsai | |
powershell.exe .\install.ps1 | |
- name: Create config files (Ubuntu) | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
cp settings/hardware_settings_template.yaml settings/hardware_settings.yaml | |
cp settings/iblrig_settings_template.yaml settings/iblrig_settings.yaml | |
- name: Create config files (Windows) | |
if: matrix.os == 'windows-latest' | |
run: | | |
copy settings\hardware_settings_template.yaml settings\hardware_settings.yaml | |
copy settings\iblrig_settings_template.yaml settings\iblrig_settings.yaml | |
- name: iblrig unit tests | |
shell: bash -l {0} | |
run: | | |
python -m unittest discover -s ./iblrig/test -t . | |
- 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 |