Repository navigation
Align repo files and test settings with speed.python.org #33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| branches: [speed.pypy.org] | |
| pull_request: | |
| branches: [speed.pypy.org] | |
| 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 | |
| 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 }} | |
| # codespeed/tests/test_commits.py drives a real Mercurial repository, and | |
| # hg is no longer preinstalled on the ubuntu-latest runner image. This | |
| # step is the only difference from the speed.python.org workflow; drop | |
| # it together with that test if the Mercurial backend stops being tested. | |
| - run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends mercurial | |
| hg --version | |
| - run: pip install -r requirements.txt "django==${{ matrix.django }}.*" | |
| - run: python manage.py test codespeed |