comments #473
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: gopro overlay | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
version: [ "3.10", "3.11", "3.12" ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{matrix.version}} | |
- name: Update apt | |
run: | | |
sudo apt update | |
- name: Install dependencies | |
run: | | |
sudo apt install fonts-roboto ffmpeg | |
PYTHONVERSION=${{matrix.version}} make venv req | |
- name: Test with pytest | |
run: | | |
PYTHONVERSION=${{matrix.version}} make ci | |
- name: Upload build artefacts | |
if: failure() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: approval-artifacts | |
path: ${{ github.workspace }}/tests/approvals/*.png | |
retention-days: 2 | |