-
Notifications
You must be signed in to change notification settings - Fork 11
76 lines (67 loc) · 2.5 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
66
67
68
69
70
71
72
73
74
75
76
name: InChI Continuous Integration
on:
push:
branches: [ main, rwth ]
pull_request:
branches: [ main, rwth ]
workflow_dispatch:
jobs:
test_glibc_gcc:
runs-on: ubuntu-latest
container: gcc:14
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e INCHI-1-TEST[invariance-tests]
- uses: ./.github/actions/compile_inchi_exe
- name: Run executable tests
run: pytest INCHI-1-TEST/tests/test_executable
- uses: ./.github/actions/compile_inchi_lib
- uses: ./.github/actions/regression_tests
with:
artifact-name: regression-test-results_glibc_gcc
- uses: ./.github/actions/invariance_tests
if: '!cancelled()'
with:
artifact-name: invariance-test-results_glibc_gcc
test_musl_gcc:
runs-on: ubuntu-latest
# We need Python 3.12. That's why we're using alpine:edge.
# Currently (May 2024) edge is the only Alpine version with Python 3.12.
# Once edge advances, the Alpine Python version will be bumped and `python -m pip install -e INCHI-1-TEST` will break.
# TODO: Find more sustainable solution.
container: alpine:edge
steps:
- name: Install build and test environment
run: |
apk add bash git musl-dev gcc g++ make python3 py-pip
# We need to install git before checking out the repository.
# Otherwise, the repository will be downloaded using the GitHub REST API instead of git.
- uses: actions/checkout@v4
- name: Show Python version
run: |
python --version
- name: Configure pip to break system packages
run: |
mkdir -p ~/.config/pip
cat <<EOT >> ~/.config/pip/pip.conf
[global]
break-system-packages = true
EOT
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e INCHI-1-TEST
- uses: ./.github/actions/compile_inchi_exe
- name: Run executable tests
run: pytest INCHI-1-TEST/tests/test_executable
- uses: ./.github/actions/compile_inchi_lib
- uses: ./.github/actions/regression_tests
with:
artifact-name: regression-test-results_musl_gcc
# FIXME: We don't run invariance test on alpine yet because of difficulties with RDKit installation.