Skip to content

Commit

Permalink
try using the conda package manager
Browse files Browse the repository at this point in the history
  • Loading branch information
splch committed Mar 13, 2024
1 parent e36643d commit 611df66
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
33 changes: 20 additions & 13 deletions .github/workflows/test_notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,26 @@ jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Check out code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- 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: |
pip install -r requirements.txt
- 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: python tests/test_notebooks.py
env:
IONQ_API_KEY: ${{ secrets.IONQ_API_KEY }}
- name: Run notebook tests
run: |
conda activate test-env
python tests/test_notebooks.py
env:
IONQ_API_KEY: ${{ secrets.IONQ_API_KEY }}
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ cuda-quantum
matplotlib
pylatexenc
jupyter
# requests
requests

0 comments on commit 611df66

Please sign in to comment.