-
Notifications
You must be signed in to change notification settings - Fork 4
65 lines (50 loc) · 1.59 KB
/
ci.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
53
54
55
56
57
58
59
60
61
62
63
64
65
name: continuous integration (ci)
on: [pull_request, workflow_dispatch]
# To successfully find the files that are required for testing:
env:
TEST_WORKSPACE: ${{ github.workspace }}
jobs:
pre_commit:
# Set up operating system
runs-on: ubuntu-latest
# Define job steps
steps:
- name: Check-out repository
uses: actions/checkout@v4
- name: Build Dev Docker Image
run: |
make docker_build_dev
- name: Docker Run pre-commit on all files.
run: |
make docker_pre_commit_action
ci:
# Set up operating system
runs-on: ubuntu-latest
strategy:
matrix:
# Quote this as strings... otherwise 3.10 will be interpreted as 3.1
python-version: ['3.10', '3.11', '3.12']
# Define job steps
steps:
- name: Check-out repository
uses: actions/checkout@v4
- name: Build Dev Docker Image
run: |
make docker_build_dev PYTHON_VERSION=${{ matrix.python-version }}
- name: Build Docker Image With Python ${{ matrix.python-version }}
run: |
make docker_build PYTHON_VERSION=${{ matrix.python-version }}
- name: Run Docker Tests With Python ${{ matrix.python-version }}
run: |
make action_compose_test
- name: Check Test Results
run: |
if [ $? -eq 0 ]; then
echo "Tests ran successfully."
else
echo "Tests failed."
exit 1
fi
# TODO: Catch errors and report them:
- name: Docker Build Documentation
run: make docker_doc_build_action