Skip to content

Commit

Permalink
test: Test Examples
Browse files Browse the repository at this point in the history
It'll quite useful to know if we've made a change that breaks our
reference examples
  • Loading branch information
techman83 committed Mar 22, 2024
1 parent c7ffd8a commit ac3ab38
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/test-examples.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Test Cally Examples

on:
pull_request:
branches:
- main

jobs:
pytest:
runs-on: ubuntu-latest
needs: build-providers
strategy:
matrix:
project: ["minimal"]
steps:
# Restore Provider Packages
- uses: actions/checkout@v4
- uses: actions/cache/restore@v3
id: cache
with:
path: build/random/dist/CallyProvidersRandom-3.6.0.tar.gz
key: cally-provider-random-3.6.0

# Cally Install
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- name: Install Provider Pacakge
run: pip install build/random/dist/CallyProvidersRandom-3.6.0.tar.gz
- name: Install Cally
run: pip install .

# IDP Install
- uses: actions/checkout@v4
with:
repository: CallyCo-io/cally-examples
path: examples
- name: Install ${{ matrix.project }}
working-directory: examples/${{ matrix.project }}
run: pip install .[test]

# Run Tests
- name: Run Pytest for ${{ matrix.project }}
working-directory: examples/${{ matrix.project }}
run: pytest -v

0 comments on commit ac3ab38

Please sign in to comment.