Skip to content

Commit 4e927aa

Browse files
committed
fix: add pull request workflow
1 parent 7461ead commit 4e927aa

2 files changed

Lines changed: 22 additions & 6 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Pull Requests
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
# NOTE: you can make these tests required in the pull request by creating a ruleset and then checking "Require status
8+
# checks to pass" and then, under "Status checks that are required" click "Add checks" and just type in these:
9+
# - "tests / pre-commit"
10+
# - "security / security"
11+
#
12+
# NOTE: if you had the jobs directly in this file you could just refer to them by the yaml identifier for the job.
13+
# for example, this job is called "tests" so you'd put "tests" as a required "status check". and if you were to take
14+
# the contents of tests.yaml and put it into here then you'd want to set "pre-commit" and "test" as required status
15+
# checks.
16+
tests:
17+
uses: ./.github/workflows/tests.yaml
18+
secrets: inherit
19+
20+
security:
21+
uses: ./.github/workflows/security.yaml
22+
secrets: inherit

.github/workflows/tests.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17-
- name: Setup python
18-
uses: actions/setup-python@v5
19-
with:
20-
python-version: "3.13.x"
21-
cache: "pip"
22-
2317
- name: Run linter
2418
uses: pre-commit/action@v3.0.1
2519
env:

0 commit comments

Comments
 (0)