-
Notifications
You must be signed in to change notification settings - Fork 9
54 lines (46 loc) · 1.21 KB
/
testing.yml
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
51
52
53
54
name: Testing
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
testing:
name: Testing
uses: OpenTTD/actions/.github/workflows/rw-entry-testing-docker-py.yml@v5
with:
python-path: bananas_api
python-version: 3.11
regression:
name: Regression
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Set up packages
run: |
sudo apt install -y --no-install-recommends \
build-essential \
libpng-dev \
libpython3-dev \
# EOF
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r regression_runner/requirements.txt
python setup.py install
- name: Install tusd
run: |
wget -q https://github.com/tus/tusd/releases/download/v1.11.0/tusd_linux_amd64.tar.gz
mkdir -p tusd
tar xf tusd_linux_amd64.tar.gz -C tusd
sudo mv tusd/tusd_linux_amd64/tusd /usr/bin/tusd
rm -rf tusd_linux_amd64.tar.gz tusd
- name: Regression
run: |
make regression