Skip to content

Commit 803fa6e

Browse files
committed
Minor tweaks to the noxfile and workflow.
1 parent 6d7330b commit 803fa6e

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.github/workflows/ci.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@ name: CI
22

33
on:
44
push:
5+
branches-ignore:
6+
- "wip*"
7+
tags:
8+
- "v*"
59
pull_request:
610
release:
711
types: [published]
812
schedule:
913
# Daily at 7:37
1014
- cron: "37 7 * * *"
15+
workflow_dispatch:
1116

1217
env:
1318
PIP_DISABLE_PIP_VERSION_CHECK: "1"
@@ -19,7 +24,7 @@ jobs:
1924
outputs:
2025
noxenvs: ${{ steps.noxenvs-matrix.outputs.noxenvs }}
2126
steps:
22-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2328
- name: Set up nox
2429
uses: wntrblm/[email protected]
2530
- id: noxenvs-matrix
@@ -43,7 +48,7 @@ jobs:
4348
posargs: coverage github
4449

4550
steps:
46-
- uses: actions/checkout@v3
51+
- uses: actions/checkout@v4
4752
- name: Install dependencies
4853
run: sudo apt-get update && sudo apt-get install -y libenchant-2-dev
4954
if: runner.os == 'Linux' && startsWith(matrix.noxenv, 'docs')
@@ -77,10 +82,11 @@ jobs:
7782
id-token: write
7883

7984
steps:
80-
- uses: actions/checkout@v3
85+
- uses: actions/checkout@v4
8186
- name: Set up Python
82-
uses: actions/setup-python@v4
87+
uses: actions/setup-python@v5
8388
with:
89+
cache: pip
8490
python-version: "3.x"
8591
- name: Install dependencies
8692
run: python -m pip install build

noxfile.py

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
ROOT = Path(__file__).parent
88
PYPROJECT = ROOT / "pyproject.toml"
9-
DOCS = ROOT / "docs"
109

1110
PACKAGE = ROOT / "jsonschema_lexer"
1211

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,4 @@ from-first = true
137137

138138
[tool.ruff.lint.per-file-ignores]
139139
"noxfile.py" = ["ANN", "D100", "S101", "T201"]
140-
"docs/*" = ["ANN", "D", "INP001"]
141140
"jsonschema_lexer/tests/*" = ["ANN", "BLE001", "D", "PERF", "S"]

0 commit comments

Comments
 (0)