-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (39 loc) · 1.27 KB
/
Copy pathpython-app.yml
File metadata and controls
50 lines (39 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This workflow automates the build, run, and test processes for the project.
# It triggers on any push or pull request to any branch.
name: Build, run & test
on:
push:
branches:
- "**"
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
env:
# pdf files require display, which is not available when you run it on Github
QT_QPA_PLATFORM: offscreen
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9.19
uses: actions/setup-python@v3
with:
python-version: "3.9.19"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
flake8 .
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y --fix-missing timidity ffmpeg musescore3 libqt5core5a wget unzip dpkg
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt-get -fy install
sudo rm -rf /var/lib/apt/lists/*
- name: Run tests
run: |
python run_tests.py --ip 127.0.0.1 --port 8000 --run-server --get-models --show-logs