Skip to content

Move QPY tests to GitHub Actions and increase inter-symengine tests #2

Move QPY tests to GitHub Actions and increase inter-symengine tests

Move QPY tests to GitHub Actions and increase inter-symengine tests #2

Workflow file for this run

name: QPY
on:
push:
branches:
- 'main'
- 'stable/*'
pull_request:
concurrency:
group: ${{ github.repository }}-${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
backward_compat:
if: github.repository_owner == 'Qiskit'
name: Backwards compatibility
runs-on: ubuntu-latest
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 29 in .github/workflows/qpy.yml

View workflow run for this annotation

GitHub Actions / QPY

Invalid workflow file

The workflow is not valid. .github/workflows/qpy.yml (Line: 29, Col: 9): Unexpected value 'path' .github/workflows/qpy.yml (Line: 32, Col: 9): Unexpected value 'key'
# 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