Repository navigation
Merge pull request #55 from sb-ncbr/dev #79
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
| name: Backend CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: sbncbr/chargefw2 | |
| options: --user root | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: "0.12.19" | |
| - name: Install system dependencies | |
| run: apt-get update && apt-get install -y --no-install-recommends ca-certificates python3 | |
| - name: Install dependencies | |
| run: uv sync --locked --no-build --no-python-downloads --python /usr/bin/python3 | |
| working-directory: ./src/backend | |
| - name: Run tests | |
| run: uv run --no-sync pytest ./tests | |
| working-directory: ./src/backend |