Skip to content

Commit 79bb9aa

Browse files
committed
update backward compatibility.
1 parent f90d66c commit 79bb9aa

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/backward_compatibility.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,32 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
pynxtools_versions: ["master"]
16+
python-versions: ["3.11"]
17+
1618
steps:
17-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
1820
with:
1921
fetch-depth: 0
2022
submodules: recursive
21-
- name: Set up Python 3.11
22-
uses: actions/setup-python@v2
23+
- name: Install uv && Set up Python $${{ matrix.python-versions }}
24+
uses: astral-sh/setup-uv@v5
2325
with:
24-
python-version: "3.11"
26+
python-version: ${{ matrix.python-versions }}
27+
version: "0.6.2"
2528
- name: Install dependencies
2629
run: |
2730
python -m pip install --upgrade pip
2831
python -m pip install coverage coveralls
2932
- name: Install pynxtools-spm
3033
run: |
31-
pip install .[dev]
34+
uv sync --all-extras --dev
3235
- name: Install pynxtools version ${{ matrix.pynxtools_versions }}
3336
run: |
3437
if [ "${{ matrix.pynxtools_versions }}" == "master" ]; then
35-
pip install pynxtools@git+https://github.com/FAIRmat-NFDI/pynxtools@${{ matrix.pynxtools_versions }}
38+
uv run pip install pynxtools@git+https://github.com/FAIRmat-NFDI/pynxtools@${{ matrix.pynxtools_versions }}
3639
else
37-
pip install pynxtools==${{ matrix.pynxtools_versions }}
40+
uv run pip install pynxtools==${{ matrix.pynxtools_versions }}
3841
fi
3942
- name: Run tests
4043
run: |
41-
pytest tests/.
44+
uv run pytest tests/.

0 commit comments

Comments
 (0)