-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompatibility_with_pynxtools_release.yml
More file actions
45 lines (41 loc) · 1.19 KB
/
compatibility_with_pynxtools_release.yml
File metadata and controls
45 lines (41 loc) · 1.19 KB
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
name: Compatibility with pynxtools
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
python-version: 3.12
jobs:
pynx_compatibility:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
pynxtools-version: ["latest"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Install uv and set the python version to ${{ env.python-version }}
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ env.python-version }}
- name: Install pynxtools-spm
run: |
uv pip install ".[dev]"
uv pip install coverage coveralls
- name: Install nomad
run: |
uv pip install nomad-lab[infrastructure]@git+https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-FAIR.git
- name: Install pynxtools release version ${{ matrix.pynxtools-version }}
run: |
if [ "${{ matrix.pynxtools-version }}" == "latest" ]; then
uv pip install pynxtools
else
uv pip install pynxtools==${{ matrix.pynxtools-version }}
fi
- name: Run tests
run: |
pytest tests/.