ci: Provider Build Caching #39
Workflow file for this run
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
name: Test | |
on: | |
push: | |
branches-ignore: | |
- main | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: ["3.11"] | |
steps: | |
# Restore Provider Packages | |
- uses: ./.github/workflows/build-providers.yaml | |
- 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 | |
- uses: actions/checkout@v4 | |
# Cally Install | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
cache: pip | |
- name: Install Cally test dependencies | |
run: pip install .[test] | |
- name: Install Provider Pacakge | |
run: pip install build/random/dist/CallyProvidersRandom-3.6.0.tar.gz | |
# Run Tests | |
- name: Run Pytest | |
run: pytest -v |