Skip to content

Commit 4677448

Browse files
authored
Enable linting in CI, and add frontend build step in validate (#844)
* Enable linting in CI, and add frontend build step in validate * Post-review update
1 parent e02d7eb commit 4677448

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/validate.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ jobs:
146146
python -m pip install --upgrade pip
147147
python -m pip install -e .'[test]'
148148
149+
- name: Backend lint check
150+
run: |
151+
cd ./backend && ruff check
152+
149153
- name: Test with pytest
150154
working-directory: ./backend
151155
run: |
@@ -158,7 +162,6 @@ jobs:
158162
run: |
159163
coverage report
160164
161-
162165
validate-frontend:
163166
needs: detect-changes
164167
runs-on: ubuntu-latest
@@ -177,7 +180,15 @@ jobs:
177180
run: |
178181
cd ./frontend
179182
npm install
180-
183+
184+
- name: Frontend lint check
185+
run: |
186+
cd ./frontend && npm run lint
187+
188+
- name: Build frontend
189+
run: |
190+
cd ./frontend && npm run build
191+
181192
- name: Test with vitest
182193
run: |
183194
cd ./frontend && npm run test -- --run

backend/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ test = [
2525
"pytest==8.2.2",
2626
"freezegun==1.5.1",
2727
"coverage==7.6.1",
28+
"ruff==0.9.3",
2829
]
2930
deploy = ['appointment[cli]', 'appointment[db]']
3031

0 commit comments

Comments
 (0)