-
Notifications
You must be signed in to change notification settings - Fork 184
51 lines (44 loc) · 1.18 KB
/
dirac-common.yml
File metadata and controls
51 lines (44 loc) · 1.18 KB
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
45
46
47
48
49
50
51
name: DIRACCommon Tests
on:
push:
branches:
- integration
- rel-*
paths:
- 'dirac-common/**'
- '.github/workflows/dirac-common.yml'
pull_request:
branches:
- integration
- rel-*
paths:
- 'dirac-common/**'
- '.github/workflows/dirac-common.yml'
jobs:
test-dirac-common:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Need full history for setuptools_scm
- uses: prefix-dev/setup-pixi@v0.9.0
with:
run-install: false
post-cleanup: false
- name: Apply workarounds
run: |
# Workaround for https://github.com/prefix-dev/pixi/issues/3762
sed -i.bak 's@editable = true@editable = false@g' dirac-common/pyproject.toml
rm dirac-common/pyproject.toml.bak
# Show any changes
git diff
- uses: prefix-dev/setup-pixi@v0.9.0
with:
cache: false
environments: testing
manifest-path: dirac-common/pyproject.toml
- name: Run tests with pixi
run: |
cd dirac-common
pixi add --feature testing pytest-github-actions-annotate-failures
pixi run pytest