-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): improve build and test workflow (#125)
- Loading branch information
1 parent
316af87
commit 5c15020
Showing
3 changed files
with
28 additions
and
7 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,25 @@ | ||
name: "Install Canvas" | ||
description: "Installs Canvas dependencies" | ||
|
||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
# Cache the project dependencies (everything in pyproject.toml). | ||
- name: Cache project dependencies | ||
id: cache-deps | ||
uses: actions/cache@v4 | ||
with: | ||
path: .venv | ||
key: project-dependencies-${{ hashFiles('**/poetry.lock') }} | ||
|
||
# Install project dependencies (bypassing the project, because we don't want to cache the Canvas code). | ||
- name: Install Dependencies | ||
run: poetry install --no-interaction --no-root | ||
shell: bash | ||
if: steps.cache-deps.outputs.cache-hit != 'true' | ||
|
||
# Install the project to make sure everything works and is synced. | ||
- name: Install Canvas | ||
shell: bash | ||
run: poetry install --no-interaction |
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