Skip to content

Commit

Permalink
ci: set working directory to backend
Browse files Browse the repository at this point in the history
  • Loading branch information
zumuta committed Nov 10, 2024
1 parent a1b59e0 commit 6421924
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/backend_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
8 changes: 4 additions & 4 deletions .github/workflows/generate_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
- name: Install Poetry
run: pip install poetry
- name: install
working-directory: backend/src
run: poetry install
working-directory: backend
run: poetry install --with docs
- name: Build documentation
working-directory: backend/src
working-directory: backend
run: |
poetry run mkdocs build -f ../../mkdocs.yml
poetry run mkdocs build -f ../mkdocs.yml
- name: Copy site
run: |
mkdir -p gh-pages
Expand Down

0 comments on commit 6421924

Please sign in to comment.