Skip to content

Commit

Permalink
ci: Move lint tip and py3-dev jobs to daily
Browse files Browse the repository at this point in the history
These jobs give us useful signal, but we don't want them blocking
PR merges, so run them daily instead of per-PR.
  • Loading branch information
TheRealFalcon committed May 30, 2024
1 parent c76ad9c commit af6b1e9
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 20 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/check_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ jobs:
fail-fast: false
matrix:
env: [ruff, mypy, pylint, black, isort]
lint-with:
- {tip-versions: false, os: ubuntu-20.04}
- {tip-versions: true, os: ubuntu-latest}
name: Check ${{ matrix.lint-with.tip-versions && 'tip-' || '' }}${{ matrix.env }}
runs-on: ${{ matrix.lint-with.os }}
name: Check ${{ matrix.env }}
runs-on: ubuntu-20.04
steps:
- name: "Checkout #1"
uses: actions/[email protected]
Expand All @@ -41,17 +38,10 @@ jobs:
run: python3 --version

- name: Test
if: ${{ !matrix.lint-with.tip-versions }}
env:
# matrix env: not to be confused w/environment variables or testenv
TOXENV: ${{ matrix.env }}
run: tox
- name: Test (tip versions)
if: matrix.lint-with.tip-versions
continue-on-error: true
env:
TOXENV: tip-${{ matrix.env }}
run: tox
schema-format:
strategy:
fail-fast: false
Expand Down
46 changes: 43 additions & 3 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
name: scheduled-hypothesis
on:
schedule:
- cron: '3 14 * * *'
pull_request:
push:
branches:
- main
# on:
# schedule:
# - cron: '3 14 * * *'
concurrency:
group: 'ci-${{ github.workflow }}-${{ github.ref }}'
cancel-in-progress: true

jobs:
unittests:
slow_tests:
strategy:
matrix:
toxenv: [ hypothesis-slow ]
Expand All @@ -30,3 +35,38 @@ jobs:
PYTEST_ADDOPTS: -v
HYPOTHESIS_PROFILE: ci
run: tox -e ${{ matrix.toxenv }}
devel_tests:
name: unittest / 3.13-dev
runs-on: ubuntuu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Fetch all tags for tools/read-version
fetch-depth: 0
- name: Install Python 3.13-dev
uses: actions/setup-python@v4
with:
python-version: 3.13-dev
check-latest: true
- name: Install tox
run: pip install tox
- name: Run unittest
run: tox -e py3
format_tip:
strategy:
matrix:
env: [tip-ruff, tip-mypy, tip-pylint, tip-black, tip-isort]
name: format-tip
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get -qy update
sudo apt-get -qy install tox
- name: Run Linters tip
env:
TOXENV: ${{ matrix.env }}
run: tox
5 changes: 0 additions & 5 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ jobs:
continue-on-error: false
check-latest: false
experimental: false
- python-version: "3.13-dev"
toxenv: py3
check-latest: true
experimental: true
continue-on-error: true
name: unittest / ${{ matrix.toxenv }} / python ${{matrix.python-version}}
runs-on: ubuntu-20.04
continue-on-error: ${{ matrix.experimental }}
Expand Down

0 comments on commit af6b1e9

Please sign in to comment.