-
Notifications
You must be signed in to change notification settings - Fork 8
84 lines (79 loc) · 2.41 KB
/
plugin_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
80
81
82
83
84
# This workflow will install Python 3.9 and run the tests of all supported plugins.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: test plugins
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
UV_SYSTEM_PYTHON: true
jobs:
pytest:
name: pytest (${{ matrix.plugin }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- plugin: pynxtools-ellips
branch: main
tests_to_run: tests/.
- plugin: pynxtools-raman
branch: main
tests_to_run: tests/.
- plugin: pynxtools-mpes
branch: main
tests_to_run: tests/.
- plugin: pynxtools-stm
branch: main
tests_to_run: tests/.
- plugin: pynxtools-xps
branch: main
tests_to_run: tests/.
- plugin: pynxtools-xrd
branch: main
tests_to_run: tests/.
# - plugin: pynxtools-apm
# branch: main
# tests_to_run: tests/.
# - plugin: pynxtools-xrd
# branch: update-tests
# tests_to_run: tests/.
# - plugin: pynxtools-em
# branch: main
# tests_to_run: tests/.
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
uv pip install --system coverage coveralls
- name: Install package
run: |
uv pip install ".[dev]"
- name: Clone ${{ matrix.plugin }} repo
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: FAIRmat-NFDI/${{ matrix.plugin }}
path: ${{ matrix.plugin }}
ref: ${{ matrix.branch }}
- name: Install nomad
run: |
uv pip install nomad-lab@git+https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-FAIR.git
- name: Install ${{ matrix.plugin }}
run: |
cd ${{ matrix.plugin }}
uv pip install .
- name: Run ${{ matrix.plugin }} tests
run: |
cd ${{ matrix.plugin }}
pytest ${{ matrix.tests_to_run }}