name: Backend CI on: push: branches: [main] pull_request: branches: [main] concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: test: name: Test and build runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Setup Python uses: actions/setup-python@v5 with: python-version: "3.12" cache: pip cache-dependency-path: requirements.txt - name: Install dependencies run: python -m pip install -r requirements.txt - name: Test run: python -m pytest tests/ -q - name: Build image run: docker build -t danagble-be:ci .