Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: npx commitlint --from ${{ github.event.before }} --to ${{ github.sha }} --verbose

ui:
name: UI Typecheck + Build
name: UI Typecheck + Test + Build
runs-on: ubuntu-latest
Comment thread
nazarli-shabnam marked this conversation as resolved.
steps:
- name: Checkout
Expand All @@ -58,12 +58,16 @@ jobs:
working-directory: apps/ui
run: npm run lint

- name: Test UI
working-directory: apps/ui
run: npm run test

- name: Build UI
working-directory: apps/ui
run: npm run build

python:
name: Python Compile / Requirements
name: Python Tests + Compile
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -74,11 +78,15 @@ jobs:
with:
python-version: "3.12"

- name: Install API/Worker requirements
- name: Install API/Worker + test requirements
run: |
python -m pip install --upgrade pip
python -m pip install -r apps/api/requirements.txt
python -m pip install -r apps/worker/requirements.txt
python -m pip install -r requirements-test.txt

- name: Run Python tests
run: python -m pytest -q
Comment thread
nazarli-shabnam marked this conversation as resolved.

- name: Compile Python sources
run: python -m compileall apps/api/src apps/worker/src
Expand Down
5 changes: 2 additions & 3 deletions apps/ui/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { dirname } from "node:path";
import path from "node:path";
import { fileURLToPath } from "node:url";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const __dirname = path.dirname(fileURLToPath(import.meta.url));

const compat = new FlatCompat({
baseDirectory: __dirname,
Expand Down
Loading
Loading