Skip to content

Commit d16463c

Browse files
Added uv-secure and simplified default working-directory
1 parent 3871253 commit d16463c

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

.github/workflows/canopeum_backend_pr_validation.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ env:
2020
# ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
2121
SECRET_KEY_DJANGO_CANOPEUM: mypy-ext
2222

23+
defaults:
24+
run:
25+
working-directory: canopeum_backend
26+
2327
jobs:
2428
django-test:
2529
runs-on: ubuntu-latest
26-
defaults:
27-
run:
28-
working-directory: canopeum_backend
2930
steps:
3031
- uses: actions/checkout@v4
3132
- name: Install uv
@@ -36,11 +37,18 @@ jobs:
3637
- run: uv sync --locked
3738
- name: Run Django Tests
3839
run: uv run manage.py test
40+
41+
uv-secure:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v4
45+
- uses: astral-sh/setup-uv@v6
46+
with:
47+
working-directory: canopeum_backend
48+
- run: uvx uv-secure[faster-async]
49+
3950
mypy:
4051
runs-on: ubuntu-latest
41-
defaults:
42-
run:
43-
working-directory: canopeum_backend
4452
steps:
4553
- uses: actions/checkout@v4
4654
- name: Install uv
@@ -53,9 +61,6 @@ jobs:
5361

5462
pyright:
5563
runs-on: ubuntu-latest
56-
defaults:
57-
run:
58-
working-directory: canopeum_backend
5964
steps:
6065
- uses: actions/checkout@v4
6166
- name: Install uv
@@ -73,9 +78,6 @@ jobs:
7378

7479
Ruff-Autofixes:
7580
runs-on: ubuntu-latest
76-
defaults:
77-
run:
78-
working-directory: canopeum_backend
7981
# Only run autofixes on PRs
8082
if: ${{ github.event_name == 'pull_request' }}
8183
steps:

.github/workflows/canopeum_frontend_pr_validation.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ on:
1515
- "canopeum_frontend/**"
1616
- ".github/workflows/canopeum_frontend_pr_validation.yml"
1717

18+
defaults:
19+
run:
20+
working-directory: canopeum_frontend
21+
1822
jobs:
1923
Lint-Autofixes:
2024
runs-on: ubuntu-latest
21-
defaults:
22-
run:
23-
working-directory: canopeum_frontend
2425
# Only run autofixes on PRs
2526
if: ${{ github.event_name == 'pull_request' }}
2627
steps:
@@ -44,9 +45,6 @@ jobs:
4445

4546
Build:
4647
runs-on: ubuntu-latest
47-
defaults:
48-
run:
49-
working-directory: canopeum_frontend
5048
steps:
5149
- uses: actions/checkout@v4
5250
- uses: actions/setup-node@v4

0 commit comments

Comments
 (0)