- changes Gemma 2/6-8 heater register from PV to SV #548
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: Pytest | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
pytest: | |
runs-on: macos-latest # on ubunut the Qt libs are missing: ImportError: libEGL.so.1: cannot open shared object file: No such file or directory | |
name: runner / pytest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
cache: 'pip' # caching pip dependencies | |
# - name: Install Linux Qt system dependencies | |
# if: runner.os == 'Linux' | |
# run: | | |
# # APT update | |
# sudo apt update | |
# | |
# # Install Pyside6 system dependencies | |
# # https://doc.qt.io/qt-6/linux-requirements.html | |
# sudo apt install -y \ | |
# libfontconfig1-dev \ | |
# libfreetype6-dev \ | |
# libx11-dev \ | |
# libx11-xcb-dev \ | |
# libxext-dev \ | |
# libxfixes-dev \ | |
# libxi-dev \ | |
# libxrender-dev \ | |
# libxkbcommon-dev \ | |
# libxkbcommon-x11-dev \ | |
# libatspi2.0-dev \ | |
# '^libxcb.*-dev' | |
# actions/setup-python@v4 commes with an automatic pip cache | |
# - name: Get pip cache dir | |
# id: pip-cache | |
# run: | | |
# echo "::set-output name=dir::$(pip cache dir)" | |
# - uses: actions/cache@v3 | |
# id: cache | |
# with: | |
## path: ~/.cache/pip # ubuntu | |
## path: ~/Library/Caches/pip # macos | |
# path: ${{ steps.pip-cache.outputs.dir }} # generic | |
# key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.*') }} | |
# restore-keys: | | |
# ${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install --upgrade -r src/requirements-dev.txt | |
pip install -r src/requirements.txt | |
- name: Test with pytest | |
run: | | |
pytest |