-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (26 loc) · 988 Bytes
/
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
### A CI workflow template that runs linting and python testing
### TODO: Modify as needed or as desired.
name: Test target-db2
on: [push]
jobs:
tests:
name: "Unit Testing"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: "With Python ${{ matrix.python-version }}"
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: "Set up container environment"
run: docker compose -f docker-compose-ci.yaml up db2 -d --wait
- name: "build worker container"
run: PYTHON_VERSION=$(python --version | grep -Po "3.\d{1,2}") docker compose -f docker-compose-ci.yaml build target
- name: "Wait for DB2 Initialization"
run: python wait_for_db2_init.py
- name: "Run Tests"
run: docker compose -f docker-compose-ci.yaml run target