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

Commit 59e27e9

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 59e27e9

File tree

3 files changed

+14
-28
lines changed

3 files changed

+14
-28
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
Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,30 @@
1-
21
name: Server tests
32

43
on: [push]
54

65
jobs:
76
build:
8-
97
runs-on: ubuntu-latest
10-
strategy:
11-
matrix:
12-
python-version: [3.11]
13-
148
steps:
15-
- uses: actions/checkout@v2
16-
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v2
9+
- uses: actions/checkout@v5
10+
- name: Install uv
11+
uses: astral-sh/setup-uv@v6
1812
with:
19-
python-version: ${{ matrix.python-version }}
13+
python-version: "3.11"
14+
- name: Set up Python 3.11
15+
run: uv python install
2016
- name: Install dependencies
2117
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"
26-
echo which git-annex
27-
which git-annex
28-
echo which datalad
29-
which datalad
30-
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
18+
uv tool install git-annex
19+
uv tool install datalad
20+
uv venv
21+
uv pip install -r requirements-devel.txt
3522
- name: Lint with flake8
3623
run: |
3724
# stop the build if there are Python syntax errors or undefined names
38-
flake8 . --count --ignore E501,E722,E402 --show-source --statistics
25+
uv run flake8 . --exclude .venv --count --ignore E501,E722,E402 --show-source --statistics
3926
- name: Test with pytest
4027
run: |
41-
export PATH="$PATH:/usr/share/miniconda/bin"
4228
git config --global user.email "github-test@example.com"
4329
git config --global user.name "Github Testscript"
44-
pytest
30+
uv run pytest

0 commit comments

Comments
 (0)