fixed test workflow #6
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
name: "Backend: Lint & Test" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
lint_and_test: | |
name: Lint & Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
enable-cache: true | |
- name: Install the project | |
run: | | |
cd backend | |
uv sync --frozen | |
echo "VIRTUAL_ENV=./.venv" >> $GITHUB_ENV | |
echo "$VIRTUAL_ENV/bin" >> $GITHUB_PATH | |
- name: Lint the project | |
run: uv run task lint | |
- name: Run tests | |
run: uv run task test |