-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.13 KB
/
main.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
name: CI
on: [ push, pull_request ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out sadco-server
uses: actions/checkout@v4
with:
path: sadco-server
- name: Check out odp-core
uses: actions/checkout@v4
with:
repository: SAEON/odp-core
path: odp-core
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
working-directory: sadco-server
run: |
python -m pip install --upgrade pip pip-tools
pip-sync
- name: Set up testing environment
working-directory: sadco-server/test
shell: bash
run: |
cp .env.test .env
docker compose up -d
sleep 30s
- name: Run the tests
working-directory: sadco-server/test
run: |
coverage run -m pytest
coverage xml
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
directory: sadco-server/test
token: ${{ secrets.CODECOV_TOKEN }}