-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.14 KB
/
web-tests.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
on: [push, pull_request]
name: Tests (Web)
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./web/tests/requirements.txt
- name: Install playwright browsers
run: python -m playwright install --with-deps
- name: Set up Docker
uses: docker/setup-buildx-action@master
- name: Run tests
run: |
git submodule init
git submodule update
export YEETFILE_ENV_FILE=.tests.env
docker volume create --name=yeetfile_data
docker compose rm -f
docker compose pull
docker compose up --build -d
docker compose logs
pytest -vx -s --tracing=retain-on-failure ./web/tests/test_single_user.py
pytest -vx -s --tracing=retain-on-failure ./web/tests/test_multi_user.py