name: CI on: push: pull_request: jobs: test: runs-on: ubuntu-latest defaults: run: working-directory: drb-edge-node steps: # Full fetch: Gitea fails to pack the default depth=1 shallow clone # ("bad pack header"). Don't set this back to a shallow fetch. - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Install dependencies run: python3 -m pip install --break-system-packages -r requirements.txt pytest - name: Run tests run: python3 -m pytest tests -v lint: runs-on: ubuntu-latest steps: # Full fetch: Gitea fails to pack the default depth=1 shallow clone # ("bad pack header"). Don't set this back to a shallow fetch. - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Lint run: | python3 -m pip install --break-system-packages flake8 python3 -m flake8 drb-edge-node/app --max-line-length=120