Skip to content

Fix title: formatter reads customised title properly. #81

Fix title: formatter reads customised title properly.

Fix title: formatter reads customised title properly. #81

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: [ "master" ]
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: |
version="${{ matrix.pynxtools-version }}"
if [[ "$version" == "latest" ]]; then
uv pip install pynxtools
elif [[ "$version" == "master" ]]; then
uv pip install git+https://github.com/FAIRmat-NFDI/pynxtools.git@master
elif [[ "$version" =~ ^v?[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
uv pip install "pynxtools==${version#v}"
else
echo "Unsupported pynxtools-version: $version"
exit 1
fi
- name: Run tests
run: |
pytest tests/.