Skip to content

Commit

Permalink
Merge pull request #21 from ynput/ci/run-full-test-suite
Browse files Browse the repository at this point in the history
Use GitHub Runner to run all tests
  • Loading branch information
tweak-wtf authored Jul 19, 2024
2 parents d880e5c + d07c914 commit 93b8941
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/run_all_tests.yml
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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# LabLib
![](https://img.shields.io/badge/os-windows-blue)
[![run all tests](https://github.com/ynput/LabLib/actions/workflows/run_all_tests.yml/badge.svg)](https://github.com/ynput/LabLib/actions/workflows/run_all_tests.yml)
[![documentation](https://github.com/ynput/LabLib/actions/workflows/documentation.yml/badge.svg)](https://github.com/ynput/LabLib/actions/workflows/documentation.yml)

Generate intermediate sequences for VFX processing using OIIO and FFMPEG!

Expand Down

0 comments on commit 93b8941

Please sign in to comment.