-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: set working directory to backend
- Loading branch information
zumuta
committed
Nov 10, 2024
1 parent
a1b59e0
commit 6421924
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -27,7 +27,7 @@ jobs: | |
- name: Install Poetry | ||
run: pip install poetry | ||
- name: Install dependencies | ||
working-directory: backend/src | ||
working-directory: backend | ||
run: poetry install --with dev,docs | ||
- name: Start MySQL | ||
run: | | ||
|
@@ -113,18 +113,18 @@ jobs: | |
DBMATE_WAIT_TIMEOUT: "30s" | ||
run: ./dbmate up | ||
- name: Test with pytest | ||
working-directory: backend/src | ||
working-directory: backend | ||
env: | ||
KWAI_SETTINGS_FILE: ${{github.workspace}}/.kwai.toml | ||
run: poetry run pytest --cov=kwai --cov-report html | ||
- name: Generate coverage badge | ||
working-directory: backend/src | ||
working-directory: backend | ||
run: poetry run coverage-badge -o ./htmlcov/coverage.svg | ||
- name: Remove .gitignore from coverage report | ||
run: rm backend/src/htmlcov/.gitignore | ||
run: rm backend/htmlcov/.gitignore | ||
- name: Deploy coverage to github pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
target-folder: coverage | ||
folder: backend/src/htmlcov | ||
folder: backend/htmlcov |
This file contains 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