@@ -34,15 +34,15 @@ jobs:
34
34
- name : Setup authentik env
35
35
uses : ./.github/actions/setup
36
36
- name : run job
37
- run : poetry run make ci-${{ matrix.job }}
37
+ run : uv run make ci-${{ matrix.job }}
38
38
test-migrations :
39
39
runs-on : ubuntu-latest
40
40
steps :
41
41
- uses : actions/checkout@v4
42
42
- name : Setup authentik env
43
43
uses : ./.github/actions/setup
44
44
- name : run migrations
45
- run : poetry run python -m lifecycle.migrate
45
+ run : uv run python -m lifecycle.migrate
46
46
test-make-seed :
47
47
runs-on : ubuntu-latest
48
48
steps :
@@ -69,19 +69,21 @@ jobs:
69
69
fetch-depth : 0
70
70
- name : checkout stable
71
71
run : |
72
- # Delete all poetry envs
73
- rm -rf /home/runner/.cache/pypoetry
74
72
# Copy current, latest config to local
73
+ # Temporarly comment the .github backup while migrating to uv
75
74
cp authentik/lib/default.yml local.env.yml
76
- cp -R .github ..
75
+ # cp -R .github ..
77
76
cp -R scripts ..
78
77
git checkout $(git tag --sort=version:refname | grep '^version/' | grep -vE -- '-rc[0-9]+$' | tail -n1)
79
- rm -rf .github/ scripts/
80
- mv ../.github ../scripts .
78
+ # rm -rf .github/ scripts/
79
+ # mv ../.github ../scripts .
80
+ rm -rf scripts/
81
+ mv ../scripts .
81
82
- name : Setup authentik env (stable)
82
83
uses : ./.github/actions/setup
83
84
with :
84
85
postgresql_version : ${{ matrix.psql }}
86
+ continue-on-error : true
85
87
- name : run migrations to stable
86
88
run : poetry run python -m lifecycle.migrate
87
89
- name : checkout current code
@@ -91,15 +93,13 @@ jobs:
91
93
git reset --hard HEAD
92
94
git clean -d -fx .
93
95
git checkout $GITHUB_SHA
94
- # Delete previous poetry env
95
- rm -rf /home/runner/.cache/pypoetry/virtualenvs/*
96
96
- name : Setup authentik env (ensure latest deps are installed)
97
97
uses : ./.github/actions/setup
98
98
with :
99
99
postgresql_version : ${{ matrix.psql }}
100
100
- name : migrate to latest
101
101
run : |
102
- poetry run python -m lifecycle.migrate
102
+ uv run python -m lifecycle.migrate
103
103
- name : run tests
104
104
env :
105
105
# Test in the main database that we just migrated from the previous stable version
@@ -108,7 +108,7 @@ jobs:
108
108
CI_RUN_ID : ${{ matrix.run_id }}
109
109
CI_TOTAL_RUNS : " 5"
110
110
run : |
111
- poetry run make ci-test
111
+ uv run make ci-test
112
112
test-unittest :
113
113
name : test-unittest - PostgreSQL ${{ matrix.psql }} - Run ${{ matrix.run_id }}/5
114
114
runs-on : ubuntu-latest
@@ -133,7 +133,7 @@ jobs:
133
133
CI_RUN_ID : ${{ matrix.run_id }}
134
134
CI_TOTAL_RUNS : " 5"
135
135
run : |
136
- poetry run make ci-test
136
+ uv run make ci-test
137
137
- if : ${{ always() }}
138
138
uses : codecov/codecov-action@v5
139
139
with :
@@ -156,8 +156,8 @@ jobs:
156
156
157
157
- name : run integration
158
158
run : |
159
- poetry run coverage run manage.py test tests/integration
160
- poetry run coverage xml
159
+ uv run coverage run manage.py test tests/integration
160
+ uv run coverage xml
161
161
- if : ${{ always() }}
162
162
uses : codecov/codecov-action@v5
163
163
with :
@@ -214,8 +214,8 @@ jobs:
214
214
npm run build
215
215
- name : run e2e
216
216
run : |
217
- poetry run coverage run manage.py test ${{ matrix.job.glob }}
218
- poetry run coverage xml
217
+ uv run coverage run manage.py test ${{ matrix.job.glob }}
218
+ uv run coverage xml
219
219
- if : ${{ always() }}
220
220
uses : codecov/codecov-action@v5
221
221
with :
0 commit comments