Skip to content

Merge branch 'main' into run_benchmarks_on_pr #71

Merge branch 'main' into run_benchmarks_on_pr

Merge branch 'main' into run_benchmarks_on_pr #71

Workflow file for this run

name: test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
SRC_DIR: zxpass
TEST_DIR: test
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: pytest
run: |
pytest ${{ env.TEST_DIR }}
- name: Download QASMBench
run: |

Check failure on line 34 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

You have an error in your yaml syntax on line 34
cd benchmarking
git clone https://github.com/pnnl/QASMBench.git
- name: Run benchmark
run: |
cd benchmarking
chmod +x ./run_benchmarks.sh
./run_benchmarks.sh