Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit b18502b

Browse files
committed
Switch server tests in CI to use uv
This gets rid of datalad-installer and (implicit?) conda usage, as a reaction to installation errors. While changing the workflows, the checkout action is bumped to v5.
1 parent f441620 commit b18502b

File tree

3 files changed

+13
-20
lines changed

3 files changed

+13
-20
lines changed

.github/workflows/deploy-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020

2121
- name: Checkout tools repo
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v5
2323
with:
2424
repository: psychoinformatics-de/sfb1451_data_entry
2525
path: sfb1451_data_entry

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020

2121
- name: Checkout tools repo
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v5
2323
with:
2424
repository: psychoinformatics-de/sfb1451_data_entry
2525
path: sfb1451_data_entry

.github/workflows/run-server-tests.yml

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,33 @@ on: [push]
55

66
jobs:
77
build:
8-
98
runs-on: ubuntu-latest
10-
strategy:
11-
matrix:
12-
python-version: [3.11]
13-
149
steps:
15-
- uses: actions/checkout@v2
16-
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v2
10+
- uses: actions/checkout@v5
11+
- name: Install uv
12+
uses: astral-sh/setup-uv@v6
1813
with:
19-
python-version: ${{ matrix.python-version }}
14+
python-version: "3.11"
15+
- name: Set up Python 3.11
16+
run: uv python install
2017
- name: Install dependencies
18+
env:
19+
UV_SYSTEM_PYTHON: 1
2120
run: |
22-
python -m pip install --upgrade pip
23-
python -m pip install datalad-installer
24-
datalad-installer datalad git-annex
25-
export PATH="$PATH:/usr/share/miniconda/bin"
21+
uv tool install git-annex
22+
uv tool install datalad
23+
if [ -f requirements-devel.txt ]; then uv pip install -r requirements-devel.txt; fi
2624
echo which git-annex
2725
which git-annex
2826
echo which datalad
2927
which datalad
3028
datalad --version
31-
if [ -f requirements-devel.txt ]; then pip install -r requirements-devel.txt; fi
32-
pip install datalad --upgrade
33-
which datalad
34-
datalad --version
3529
- name: Lint with flake8
3630
run: |
3731
# stop the build if there are Python syntax errors or undefined names
3832
flake8 . --count --ignore E501,E722,E402 --show-source --statistics
3933
- name: Test with pytest
4034
run: |
41-
export PATH="$PATH:/usr/share/miniconda/bin"
4235
git config --global user.email "github-test@example.com"
4336
git config --global user.name "Github Testscript"
4437
pytest

0 commit comments

Comments
 (0)