try using the conda package manager #89
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 Notebooks | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Conda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: test-env | |
environment-file: environment.yml | |
python-version: "3.11" | |
auto-activate-base: false | |
- name: Install dependencies | |
run: | | |
conda env create -f environment.yml | |
conda activate test-env | |
while read requirement; do conda install --yes $requirement || pip install $requirement; done < requirements.txt | |
- name: Run notebook tests | |
run: | | |
conda activate test-env | |
python tests/test_notebooks.py | |
env: | |
IONQ_API_KEY: ${{ secrets.IONQ_API_KEY }} |