Move QPY tests to GitHub Actions and increase inter-symengine tests #1
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: QPY backwards compatibility | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'stable/*' | ||
jobs: | ||
qpy: | ||
name: QPY backwards compatibility | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'Qiskit/qiskit' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.9' | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: actions/cache@v4 | ||
path: test/qpy_compat/qpy_cache | ||
Check failure on line 26 in .github/workflows/qpy.yml GitHub Actions / QPY backwards compatibilityInvalid workflow file
|
||
# The hashing is this key can be too eager to invalidate the cache, but since we risk the | ||
# QPY tests failing to update if they're not in sync, it's better safe than sorry. | ||
key: qpy-${{ hashFiles('test/qpy_compat/**') }} | ||
- name: Run QPY backwards compatibility tests | ||
working-directory: test/qpy_compat | ||
run: ./run_tests.sh |