-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (41 loc) · 1.06 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
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.8
regression:
name: Regression
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Set up packages
run: |
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