-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add sccache and make validation optional
- Loading branch information
Showing
3 changed files
with
14 additions
and
11 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 |
---|---|---|
|
@@ -2,6 +2,10 @@ name: Pull Request | |
|
||
on: pull_request | ||
|
||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
RUSTC_WRAPPER: "sccache" | ||
|
||
jobs: | ||
check: | ||
name: Check Python | ||
|
@@ -13,6 +17,8 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
- name: Install poetry | ||
run: pipx install poetry | ||
- name: Set up Python ${{ matrix.python-version }} | ||
|
@@ -39,16 +45,8 @@ jobs: | |
src: "./guppylang" | ||
args: check | ||
|
||
- name: Build Hugr validator | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
command: build | ||
sccache: 'true' | ||
rust-toolchain: '1.75' | ||
working-directory: validator | ||
|
||
- name: Install Hugr validator | ||
run: poetry add validator/target/wheels/* | ||
- name: Install Guppy with validation | ||
run: poetry install --with validation | ||
|
||
- name: Run tests | ||
run: poetry run pytest | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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