-
Notifications
You must be signed in to change notification settings - Fork 2
chore: update e2e workflow to simplify commands and add processing se… #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
69b66c1
chore: update e2e workflow to simplify commands and add processing se…
77ac53d
chore: update Node.js version to 20 in e2e workflow
6bc647c
refactor: improve type definitions and clean up props handling in Sur…
2de3bea
docs: enhance README with detailed CI process and checks
9b67d25
fix: correct Python version in ruff configuration and tidy comments i…
17461fa
refactor: remove unused test_get_task_status function from test_task.py
e9cded9
fix: update test command in workflow and README to use 'uv run pytest'
5d563c9
docs: add CI section to README with GitHub Actions details
c6d32a5
feat: add frontend and processing service linting workflows; remove o…
b320c2a
fix: correct typo in survey-pipeline.yml
fffe9da
fix: rename lint job to frontend-lint in GitHub Actions workflow
bc15cb0
feat: add Checkstyle configuration and enhance Survey-related classes…
c4f7ea0
feat: implement integration tests with Testcontainers and add initial…
16d11da
feat: enhance database schema handling and update Task model with Enu…
f9722c1
fix: remove unused import of Task model in database.py and clean up i…
e6bf1d7
chore: consolidate CI workflows into a single formulaai-ci.yml and re…
9e9d048
feat: enhance CI workflow to allow manual job execution with force op…
f77e373
chore: remove workflow_dispatch inputs and simplify job conditions in…
4703003
docs: add Continuous Integration (CI) section to project documentation
c6b99e1
feat: implement path detection for CI jobs to optimize workflow execu…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,112 @@ | ||
| name: FormulAI CI | ||
|
|
||
| on: | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| detect-changes: | ||
| name: Detect changed paths | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| frontend: ${{ steps.filter.outputs.frontend }} | ||
| processing: ${{ steps.filter.outputs.processing }} | ||
| survey: ${{ steps.filter.outputs.survey }} | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
|
|
||
| - uses: dorny/paths-filter@v2 | ||
| id: filter | ||
| with: | ||
| filters: | | ||
| frontend: | ||
| - 'frontend/**' | ||
| processing: | ||
| - 'processing/**' | ||
| survey: | ||
| - 'survey/**' | ||
|
|
||
| lint-frontend: | ||
| name: Lint Frontend | ||
| runs-on: ubuntu-latest | ||
| needs: detect-changes | ||
| if: needs.detect-changes.outputs.frontend == 'true' | ||
| defaults: | ||
| run: | ||
| working-directory: frontend | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: 20 | ||
| - run: npm install | ||
| - run: npm run lint | ||
|
|
||
| e2e: | ||
| name: E2E Tests | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: frontend | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: 20 | ||
| - run: npm install | ||
| - run: npm run dev & | ||
| - run: npx wait-on http://localhost:5173 | ||
| - run: npm run test:e2e | ||
|
|
||
| processing-tests: | ||
| name: Processing Service Tests | ||
| runs-on: ubuntu-latest | ||
| needs: detect-changes | ||
| if: needs.detect-changes.outputs.processing == 'true' | ||
| defaults: | ||
| run: | ||
| working-directory: processing | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.11' | ||
| - name: Install uv and ruff | ||
| run: | | ||
| pip install uv | ||
| pip install ruff | ||
| - name: Sync dependencies | ||
| run: uv sync | ||
| - name: Run lint ruff | ||
| run: ruff check . | ||
| - name: Run tests | ||
| run: uv run pytest | ||
|
|
||
| survey-tests: | ||
| name: Survey Service Tests | ||
| runs-on: ubuntu-latest | ||
| needs: detect-changes | ||
| if: needs.detect-changes.outputs.survey == 'true' | ||
| defaults: | ||
| run: | ||
| working-directory: survey | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up JDK 21 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: '21' | ||
| - name: Cache Maven packages | ||
| uses: actions/cache@v3 | ||
| with: | ||
| path: ~/.m2/repository | ||
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-maven- | ||
| - name: Run lint (Checkstyle) | ||
| run: ./mvnw checkstyle:check | ||
| - name: Run tests | ||
| run: ./mvnw clean verify jacoco:report | ||
| - name: Check coverage >= 80% | ||
| run: ./mvnw jacoco:check |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.