on: [push] jobs: lint-build: runs-on: podman steps: - uses: actions/checkout@v4 - name: Setup Python run: | pip install pre-commit pre-commit run --all-files - name: Build FastAPI image run: | podman build -t cmmc-fastapi:${{ forgejo.sha }} \ -f .container-images/fastapi.Dockerfile . tests: runs-on: podman needs: lint-build steps: - uses: actions/checkout@v4 - name: Install test deps run: | pip install -r requirements.txt -r requirements-dev.txt - name: Run pytest run: pytest -q