-
Notifications
You must be signed in to change notification settings - Fork 3
79 lines (75 loc) · 1.89 KB
/
test.yaml
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
77
78
79
---
name: test
# -----------------
# Control variables (GitHub Secrets)
# -----------------
#
# (n/a)
#
# -----------
# Environment (GitHub Environments)
# -----------
#
# Environment (n/a)
on:
- push
jobs:
static-analysis:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Pre-commit check
run: |
pip install --upgrade pip
pip install .[dev]
pre-commit run --all-files
command-execution:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
needs:
- static-analysis
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
pip install --upgrade pip
pip install .
- name: Test command help
run: |
python -m xchemalign.copier -h
python -m xchemalign.collator -h
python -m xchemalign.aligner -h
- name: Test config_1
run: |
mkdir -p test-data/outputs/upload_1
python -m xchemalign.collator -c test-data/config_1.yaml
python -m xchemalign.aligner -d test-data/outputs/upload_1
- name: Test config_2
run: |
mkdir -p test-data/outputs/upload_2
python -m xchemalign.collator -c test-data/config_2.yaml
python -m xchemalign.aligner -d test-data/outputs/upload_2
- name: Test config_3
run: |
mkdir -p test-data/outputs/upload_3
python -m xchemalign.collator -c test-data/config_3.yaml
python -m xchemalign.aligner -d test-data/outputs/upload_3