NOMAD example: add README and description #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compatibility with pynxtools | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
UV_SYSTEM_PYTHON: true | |
jobs: | |
pynx_compatibility: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
pynxtools_versions: ["master"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
run: | | |
curl -LsSf https://astral.sh/uv/install.sh | sh | |
uv pip install coverage coveralls | |
- name: Install pynxtools-igor | |
run: | | |
uv pip install ".[dev]" | |
- name: Install pynxtools version ${{ matrix.pynxtools_versions }} | |
run: | | |
if [ "${{ matrix.pynxtools_versions }}" == "master" ]; then | |
uv pip install pynxtools@git+https://github.com/FAIRmat-NFDI/pynxtools@${{ matrix.pynxtools_versions }} | |
else | |
uv pip install pynxtools==${{ matrix.pynxtools_versions }} | |
fi | |
- name: Run tests | |
run: | | |
pytest tests/. |