Skip to content

Commit 3295a72

Browse files
committed
test: Add DiracX Unit Tests CI
1 parent 640e764 commit 3295a72

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/basic.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,48 @@ jobs:
108108
tests/Integration/WorkloadManagementSystem/Test_GenerateAndExecutePilotWrapper.py \
109109
src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py \
110110
src/DIRAC/Resources/Computing/BatchSystems/*.py
111+
112+
diracx:
113+
name: DiracX Unit Tests
114+
runs-on: ubuntu-latest
115+
steps:
116+
- name: Checkout DIRAC
117+
uses: actions/checkout@v4
118+
with:
119+
fetch-depth: 0
120+
path: DIRAC
121+
- name: Checkout DiracX
122+
uses: actions/checkout@v4
123+
with:
124+
fetch-depth: 0
125+
repository: DIRACGrid/diracx
126+
path: diracx
127+
- uses: prefix-dev/setup-pixi@v0.8.8
128+
with:
129+
run-install: false
130+
post-cleanup: false
131+
- name: Apply workarounds
132+
run: |
133+
cd diracx
134+
# Workaround for https://github.com/prefix-dev/pixi/issues/3762
135+
sed -i.bak 's@editable = true@editable = false@g' pixi.toml
136+
rm pixi.toml.bak
137+
# Add annotations to github actions
138+
pixi add --no-install --pypi --feature diracx-core pytest-github-actions-annotate-failures
139+
# Add the current DIRAC clone to the pixi.toml
140+
pixi add --no-install --pypi --feature diracx-core 'DIRAC @ file://'$PWD'/../DIRAC'
141+
# Show any changes
142+
git diff
143+
- uses: prefix-dev/setup-pixi@v0.8.8
144+
with:
145+
cache: false
146+
environments: >-
147+
diracx-core
148+
diracx-db
149+
diracx-logic
150+
diracx-routers
151+
diracx-client
152+
diracx-api
153+
diracx-cli
154+
- name: Run pytest
155+
run: cd diracx && pixi run pytest-diracx-all-one-by-one

0 commit comments

Comments
 (0)