Skip to content

Commit

Permalink
ci: skip Python 3.9 test on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ketozhang committed Oct 7, 2024
1 parent a66ad90 commit c534d3a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
branch:
- ${{ github.event.head.ref_name }}
exclude:
- python-version: "3.9"
if: github.ref == 'refs/heads/main'
- branch: main
python-version: "3.9"

steps:
- uses: actions/checkout@v3
Expand Down
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ repos:
- id: check-yaml
- id: check-added-large-files

- repo: https://github.com/rhysd/actionlint
rev: v1.7.3
hooks:
- id: actionlint

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 'v0.6.3'
Expand Down

0 comments on commit c534d3a

Please sign in to comment.