File tree Expand file tree Collapse file tree 2 files changed +57
-3
lines changed
Expand file tree Collapse file tree 2 files changed +57
-3
lines changed Original file line number Diff line number Diff line change 1+ name : NOMAD dependencies compatibility
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+ # Run workflow only when there are changes in pyproject.toml or dev-requirements.txt
11+ paths :
12+ - ' pyproject.toml'
13+ - ' dev-requirements.txt'
14+
15+ jobs :
16+ validate_dependencies :
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - name : Checkout pynxtools
21+ uses : actions/checkout@v2
22+
23+ - name : Checkout NOMAD from GitLab
24+ run : |
25+ git clone --depth 1 --branch develop --recurse-submodules https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-FAIR.git nomad
26+ git submodule update --init --recursive --depth 1
27+
28+ - name : Replace pynxtools dependency in NOMAD pyproject.toml
29+ working-directory : ./nomad
30+ run : |
31+ sed -i 's|pynxtools\[convert\]==[0-9]\+\(\.[0-9]\+\)\{0,2\}|pynxtools\[convert\]@git+https://github.com/FAIRmat-NFDI/pynxtools.git@${{ github.head_ref || github.ref_name }} |' pyproject.toml
32+
33+ - name : Set up Python
34+ uses : actions/setup-python@v2
35+ with :
36+ python-version : ' 3.9'
37+
38+ - name : Install uv
39+ run : |
40+ curl -LsSf https://astral.sh/uv/install.sh | sh
41+
42+ - name : Generate (dev-)requirements.txt from modified pyproject.toml
43+ working-directory : ./nomad
44+ run : |
45+ uv pip compile -p 3.9 --annotation-style=line --extra=infrastructure --extra=parsing --output-file=requirements.txt dependencies/nomad-dos-fingerprints/pyproject.toml dependencies/parsers/eelsdb/pyproject.toml pyproject.toml
46+ uv pip compile -p 3.9 --annotation-style=line --extra=dev --extra=infrastructure --extra=parsing --output-file=requirements-dev.txt requirements.txt pyproject.toml
47+
48+ - name : Install NOMAD dependencies with pynxtools from current branch
49+ working-directory : ./nomad
50+ run : |
51+ uv pip install --system -r requirements.txt
52+ uv pip install --system -r requirements-dev.txt
53+ env :
54+ PYTHONPATH : " " # Ensure no pre-installed packages interfere with the test
Original file line number Diff line number Diff line change 2626 # - plugin: pynxtools-em
2727 # branch: main
2828 # tests_to_run: tests/.
29- # - plugin: pynxtools-mpes
30- # branch: main
31- # tests_to_run: tests/.
29+ - plugin : pynxtools-mpes
30+ branch : main
31+ tests_to_run : tests/.
3232 - plugin : pynxtools-stm
3333 branch : main
3434 tests_to_run : tests/.
You can’t perform that action at this time.
0 commit comments