forked from maxpareschi/LabLib
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from ynput/ci/run-full-test-suite
Use GitHub Runner to run all tests
- Loading branch information
Showing
2 changed files
with
74 additions
and
0 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,72 @@ | ||
name: run all tests | ||
|
||
on: | ||
pull_request: | ||
branches: ["develop"] | ||
|
||
jobs: | ||
full_test_suite: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: restore poetry cache | ||
uses: actions/cache@v4 | ||
id: restore-poetry | ||
with: | ||
path: .poetry | ||
key: ${{ runner.os }}-poetry | ||
|
||
- name: restore poetry lock file | ||
uses: actions/cache@v4 | ||
id: restore-poetry-lockfile | ||
with: | ||
path: poetry.lock | ||
key: ${{ runner.os }}-poetry-lockfile | ||
|
||
- name: restore vendor cache | ||
uses: actions/cache@v4 | ||
id: restore-vendor | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-vendor | ||
|
||
- name: install LabLib | ||
run: | | ||
.\start.ps1 install | ||
- name: get dependencies | ||
if: steps.restore-vendor.outputs.cache-hit != 'true' | ||
run: | | ||
.\start.ps1 get-dependencies | ||
- name: run all tests | ||
run: | | ||
.\start.ps1 test | ||
- name: save vendor dependencies cache | ||
if: steps.restore-vendor.outputs.cache-hit != 'true' | ||
uses: actions/cache/save@v4 | ||
id: cache-vendor | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-vendor | ||
|
||
- name: save poetry cache | ||
if: steps.restore-poetry.outputs.cache-hit != 'true' | ||
uses: actions/cache/save@v4 | ||
id: cache-poetry | ||
with: | ||
path: .poetry | ||
key: ${{ runner.os }}-poetry | ||
|
||
- name: save poetry lock file | ||
if: steps.restore-poetry-lockfile.outputs.cache-hit != 'true' | ||
uses: actions/cache/save@v4 | ||
id: cache-poetry-lockfile | ||
with: | ||
path: poetry.lock | ||
key: ${{ runner.os }}-poetry |
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