nightly.yaml
This file
Path
.github/workflows/nightly.yaml
69 lines · 2.8 KiB · YAML
Last changed by
Run Flask's test suite in the nightly workflow (#3768)Rowlando13before adoptioncbd7a41
History of this fileTake it
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970name: Nightly testson: schedule: - cron: '0 6 * * *' workflow_dispatch:permissions: {}concurrency: group: ${{ github.workflow }} cancel-in-progress: falsejobs: race-tests: name: ${{ matrix.config.name }} (${{ matrix.branch }}) runs-on: ${{ matrix.config.os || 'ubuntu-latest' }} strategy: fail-fast: false matrix: branch: [main, stable] config: - {name: Random 3.14, python: '3.14', tox: random} - {name: Random 3.14t, python: '3.14t', tox: random} - {name: Random 3.13, python: '3.13', tox: random} - {name: Random 3.12, python: '3.12', tox: random} - {name: Random 3.11, python: '3.11', tox: random} - {name: Random 3.10, python: '3.10', tox: random} - {name: Random Windows, python: '3.14', tox: random, os: windows-latest} - {name: Random Mac, python: '3.14', tox: random, os: macos-latest} - {name: Stress 3.14, python: '3.14', tox: stress-py3.14} - {name: Stress 3.14t, python: '3.14t', tox: stress-py3.14t} - {name: Stress Mac 3.14t, python: '3.14t', tox: stress-py3.14t, os: macos-latest} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false ref: ${{ matrix.branch }} - uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 with: enable-cache: true - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: ${{ matrix.config.python }} - run: uv run --locked --no-default-groups --group dev tox run env: TOX_ENV: ${{ matrix.config.tox }} flask-tests: name: Flask (${{ matrix.branch }}) runs-on: ubuntu-latest strategy: fail-fast: false matrix: branch: [main, stable] steps: # Check out Flask, not Click: the Click branch under test is installed # from git below, so Flask's own suite runs against it. - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false repository: pallets/flask - uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 with: enable-cache: true - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: '3.14' - run: uv sync --all-extras # --with overlays the Click branch on top of the version Flask's lock # pins, so a downstream regression shows up as a Flask test failure. - run: uv run --with "git+https://github.com/pallets/click.git@${CLICK_REF}" -- pytest env: CLICK_REF: ${{ matrix.branch }}