-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (41 loc) · 1.27 KB
/
build_and_test.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
name: Python Driver Tests
on:
pull_request:
paths:
- "**"
defaults:
run:
working-directory: ./
jobs:
build_and_test:
strategy:
matrix:
# Run in all these versions of Python
# current and last three python versions
python-version:
- "3.12"
- "3.11"
- "3.10"
- "3.9"
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Show file descriptor limit
run: ulimit -a
- name: Build docker
run: docker compose -f docker/docker-compose.yml build --build-arg BASE_IMG=python:${{ matrix.python-version }} --no-cache
- name: Run unit tests
run: docker compose -f docker/docker-compose.yml run --rm unit-test
- name: Run integration tests
run: docker compose -f docker/docker-compose.yml run --rm integration-test
- name: Generate coverage html report with dynamic contexts
run: docker compose -f docker/docker-compose.yml run --rm coverage
- uses: actions/upload-artifact@v3
with:
name: html-code-coverage-database
path: ./.coverage
- uses: actions/upload-artifact@v3
with:
name: html-code-coverage-report
path: ./htmlcov