Integration Test #3
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: Integration Test | |
on: [workflow_dispatch] | |
permissions: | |
contents: read | |
jobs: | |
integ_test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Poetry | |
run: pipx install poetry==1.8.3 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "poetry" | |
- name: Install dependencies | |
run: poetry install --no-interaction --no-root | |
- name: Install Project | |
run: poetry install --no-interaction | |
- name: Cache cassettes | |
uses: actions/cache@v4 | |
with: | |
path: tests/integration/cassettes | |
# Always restore this cache as the script takes care of updating | |
key: usp-cassettes | |
- name: Download cassettes | |
run: poetry run python tests/integration/download.py -d | |
- name: Run integration tests | |
run: poetry run pytest --integration --durations=0 \ | |
--junit-xml=$GITHUB_SHA.xml \ | |
tests/integration/test_integration.py | |
- name: Upload report | |
uses: actions/upload-artifact@v4 | |
with: | |
path: $GITHUB_SHA.xml | |
name: junit_report |