Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: 3.11

- name: Install dependencies
run: |
# Use the system Bash shell to ensure we can run commands like `npm ci`
Expand All @@ -68,7 +63,7 @@ jobs:
- name: Run pr-checks tests
if: always()
working-directory: pr-checks
run: python -m unittest discover
run: npm ci && npx tsx --test

- name: Lint
if: always() && matrix.os != 'windows-latest'
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/rebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,13 @@ jobs:
npm run lint -- --fix
npm run build

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: 3.11

- name: Sync back version updates to generated workflows
# Only sync back versions on Dependabot update PRs
if: startsWith(env.HEAD_REF, 'dependabot/')
working-directory: pr-checks
run: |
python3 sync_back.py -v
npm ci
npx tsx sync_back.ts --verbose

- name: Generate workflows
working-directory: pr-checks
Expand Down
3 changes: 0 additions & 3 deletions pr-checks/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
env
__pycache__/
*.pyc
node_modules/
Empty file removed pr-checks/__init__.py
Empty file.
8 changes: 4 additions & 4 deletions pr-checks/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ to one of the files in this directory.

## Updating workflows

1. Install https://github.com/casey/just by whichever way you prefer.
2. Run `just update-pr-checks` in your terminal.
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/`.

### If you don't want to install `just`
Alternatively, you can use `just`:

Manually run each step in the `justfile`.
1. Install https://github.com/casey/just by whichever way you prefer.
2. Run `just update-pr-checks` in your terminal.
185 changes: 0 additions & 185 deletions pr-checks/sync_back.py

This file was deleted.

Loading
Loading