1313 # - 'dev-requirements.txt'
1414
1515env :
16- UV_SYSTEM_PYTHON : true
16+ python-version : 3.11
1717
1818jobs :
1919 validate_dependencies :
@@ -28,26 +28,21 @@ jobs:
2828 git clone --depth 1 --branch develop --recurse-submodules https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-FAIR.git nomad
2929 git submodule update --init --recursive --depth 1
3030
31- - name : Replace pynxtools dependency in NOMAD pyproject.toml
31+ - name : Add pynxtools dependency in NOMAD test_plugins.txt
3232 working-directory : ./nomad
3333 run : |
34- sed -i 's|pynxtools\[convert\]==[0-9]\+\(\.[0-9]\+\)\+\([0-9]\)|pynxtools\[convert\]@git+https://github.com/FAIRmat-NFDI/pynxtools.git@${{ github.head_ref || github.ref_name }} |' default_plugins.txt
35- - name : Set up Python
36- uses : actions/setup-python@v5
34+ echo "" >> test_plugins.txt
35+ echo "pynxtools[convert]@git+https://github.com/FAIRmat-NFDI/pynxtools.git@${{ github.head_ref || github.ref_name }}" >> test_plugins.txt
36+ - name : Install uv and set the python version to ${{ env.python-version }}
37+ uses : astral-sh/setup-uv@v5
3738 with :
38- python-version : ' 3.11'
39-
40- - name : Install uv
41- run : |
42- curl -LsSf https://astral.sh/uv/install.sh | sh
43-
39+ python-version : ${{ env.python-version }}
4440 - name : Generate (dev-)requirements.txt from modified pyproject.toml
4541 working-directory : ./nomad
4642 run : |
47- uv pip compile --universal -p 3.11 --annotation-style=line --extra=infrastructure --extra=parsing --output-file=requirements.txt pyproject.toml
48- uv pip compile --universal -p 3.11 --annotation-style=line --extra=dev --extra=infrastructure --extra=parsing --output-file=requirements-dev.txt requirements.txt pyproject.toml
49- uv pip compile --universal -p 3.11 --annotation-style=line --output-file=requirements-plugins.txt --unsafe-package nomad-lab -c requirements-dev.txt default_plugins.txt
50-
43+ uv pip compile --universal -p ${{ env.python-version }} --annotation-style=line --extra=infrastructure --extra=parsing --output-file=requirements.txt pyproject.toml
44+ uv pip compile --universal -p ${{ env.python-version }} --annotation-style=line --extra=dev --extra=infrastructure --extra=parsing --output-file=requirements-dev.txt requirements.txt pyproject.toml
45+ uv pip compile --universal -p ${{ env.python-version }} --annotation-style=line --output-file=requirements-plugins.txt --unsafe-package nomad-lab -c requirements-dev.txt test_plugins.txt
5146 - name : Install NOMAD dependencies with pynxtools from current branch
5247 working-directory : ./nomad
5348 run : |
0 commit comments