-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: try to re-use pants_init and split out typecheck
- Loading branch information
1 parent
c095b65
commit 5f1ce0e
Showing
4 changed files
with
34 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: pants_init | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GH_PAT }} | ||
- name: Initialize Pants | ||
uses: pantsbuild/actions/init-pants@main | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | ||
with: | ||
# cache0 makes it easy to bust the cache if needed | ||
gha-cache-key: cache0-py-3-10 | ||
named-caches-hash: ${{ hashFiles('3rdparty/*.txt') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: CI - Typecheck | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
jobs: | ||
typecheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: pants_init | ||
uses: "../templates/pants_init" | ||
- name: mypy | ||
run: "pants --tag='-arm' check ::" |