-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.16 KB
/
pynxtools_compatibility.yaml
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
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.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
uv pip install coverage coveralls
- name: Install pynxtools-ellips
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/.