-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (44 loc) · 1.44 KB
/
check_metainfo_package.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
name: nexus package check
on:
push:
branches: [master]
pull_request:
branches: [master]
# Run workflow only when there are changes in src/pynxtools/nomad or in the definitions submodule
paths:
- 'src/pynxtools/nomad/**'
- '!src/pynxtools/nomad/examples/**'
- 'src/pynxtools/definitions/applications/**/*.nxdl.xml'
- 'src/pynxtools/definitions/base_classes/**/*.nxdl.xml'
- 'src/pynxtools/definitions/contributed/definitions/**/*.nxdl.xml'
env:
python-version: 3.11
jobs:
nexus-version:
runs-on: ubuntu-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 nomad
run: |
uv pip install 'nomad-lab[infrastructure] @ git+https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-FAIR.git'
- name: Install pynx
run: |
uv pip install .
- name: Generate metainfo package
run: |
./scripts/generate_package.sh
- uses: CatChen/check-git-status-action@v1
with:
fail-if-not-clean: true
request-changes-if-not-clean: false
push-if-not-clean: false
- name: git diff
if: failure()
run: git diff src/pynxtools/nomad/nxs_metainfo_package.json