-
Notifications
You must be signed in to change notification settings - Fork 16
35 lines (32 loc) · 1.06 KB
/
application-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
---
name: Application tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Run application tests
env:
QUALITY_TIME_VERSION: v5.19.0
ENV: ci
PROXY_PORT: 8080
run: |
mkdir -p build
docker compose --file docker/docker-compose.yml --file docker/docker-compose.ci.yml --project-name quality-time up --build --detach --wait
docker run -t -w `pwd` -v `pwd`:`pwd` --network=container:quality-time-www-1 ghcr.io/astral-sh/uv:python3.13-bookworm tests/application_tests/ci/test.sh
- name: Save container logs
if: always()
run: |
docker compose logs > build/containers.log
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: build-artifacts
path: build