Skip to content

Commit e681b9f

Browse files
Merge remote-tracking branch 'origin/main' into dependabot/github_actions/dot-github/workflows/actions/upload-artifact-7
2 parents 31d26f2 + b1b5550 commit e681b9f

File tree

9 files changed

+477
-441
lines changed

9 files changed

+477
-441
lines changed

.github/workflows/pr-checks.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ jobs:
4242
node-version: ${{ matrix.node-version }}
4343
cache: 'npm'
4444

45-
- name: Set up Python
46-
uses: actions/setup-python@v6
47-
with:
48-
python-version: 3.11
49-
5045
- name: Install dependencies
5146
run: |
5247
# Use the system Bash shell to ensure we can run commands like `npm ci`
@@ -68,7 +63,7 @@ jobs:
6863
- name: Run pr-checks tests
6964
if: always()
7065
working-directory: pr-checks
71-
run: python -m unittest discover
66+
run: npm ci && npx tsx --test
7267

7368
- name: Lint
7469
if: always() && matrix.os != 'windows-latest'

.github/workflows/rebuild.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,13 @@ jobs:
7373
npm run lint -- --fix
7474
npm run build
7575
76-
- name: Set up Python
77-
uses: actions/setup-python@v6
78-
with:
79-
python-version: 3.11
80-
8176
- name: Sync back version updates to generated workflows
8277
# Only sync back versions on Dependabot update PRs
8378
if: startsWith(env.HEAD_REF, 'dependabot/')
8479
working-directory: pr-checks
8580
run: |
86-
python3 sync_back.py -v
81+
npm ci
82+
npx tsx sync_back.ts --verbose
8783
8884
- name: Generate workflows
8985
working-directory: pr-checks

pr-checks/.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
env
2-
__pycache__/
3-
*.pyc
41
node_modules/

pr-checks/__init__.py

Whitespace-only changes.

pr-checks/readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ to one of the files in this directory.
66

77
## Updating workflows
88

9-
1. Install https://github.com/casey/just by whichever way you prefer.
10-
2. Run `just update-pr-checks` in your terminal.
9+
Run `./sync.sh` to invoke the workflow generator and re-generate the workflow files in `.github/workflows/` based on the templates in `pr-checks/checks/`.
1110

12-
### If you don't want to install `just`
11+
Alternatively, you can use `just`:
1312

14-
Manually run each step in the `justfile`.
13+
1. Install https://github.com/casey/just by whichever way you prefer.
14+
2. Run `just update-pr-checks` in your terminal.

pr-checks/sync_back.py

Lines changed: 0 additions & 185 deletions
This file was deleted.

0 commit comments

Comments
 (0)