Skip to content

Lint the site packages in CI and fix what it found #34

Lint the site packages in CI and fix what it found

Lint the site packages in CI and fix what it found #34

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.13"
- run: pip install -r requirements-dev.txt
- run: flake8 codespeed speed_python speed_pypy
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13", "3.14"]
django: ["5.2", "6.1"]
name: Python ${{ matrix.python-version }} / Django ${{ matrix.django }}
env:
DJANGO_SETTINGS_MODULE: codespeed.tests.settings
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ matrix.python-version }}
- run: pip install -r requirements.txt "django==${{ matrix.django }}.*"
# test_commits.py skips itself when hg is not installed
- run: python manage.py test codespeed speed_python speed_pypy