forked from OpenMS/OpenMS
-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (47 loc) · 1.64 KB
/
test_pyopenms.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
name: Test pyOpenMS on different platforms
on:
workflow_dispatch: # Trigger manually
workflow_run: # Trigger on pyopenms-wheels
workflows: ["pyopenms-wheels-and-packages"]
types:
- completed
jobs:
read-python-versions:
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch'}}
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.python_versions.outputs.content }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Read python_versions.json
id: python_versions
uses: juliangruber/[email protected]
with:
path: .github/workflows/python_versions.json
- name: Echo python_versions.json
run: echo "${{ steps.python_versions.outputs.content }}"
test:
needs: read-python-versions
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: ${{ fromJson(needs.read-python-versions.outputs.matrix) }}
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --index-url https://pypi.cs.uni-tuebingen.de/simple/ pyopenms
- name: Run tests
run: |
python -c "import sys;
import pyopenms;
print(sys.version);
seq = pyopenms.AASequence.fromString('DFPIANGER');
print(seq.toString());
seq.getMonoWeight()"