Skip to content

chore: publication aftercare (ruff format, format check in CI, banner) #9

chore: publication aftercare (ruff format, format check in CI, banner)

chore: publication aftercare (ruff format, format check in CI, banner) #9

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.12"]
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: python -m pip install -e ".[dev]"
- name: Lint
run: |
ruff check .
ruff format --check .
- name: Unit and contract tests
run: python -m pytest -q
- name: Consumer install test (fresh venv)
env:
GITHUBBOT_CORE_CONSUMER_TEST: "1"
run: python -m pytest -q tests/test_consumer_install.py