-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update links for colab * test common versions of python * fix indentation * lol requests not requirements * pin ubuntu version * test specifying the architecture * test to remove python3.12 * pip freeze to help pip * oh good luck * maybe 3.9 cant resolve * test old deps with no dep checking * upgrade pip * dont specify versions * revert requirements and actions * try using the conda package manager * remove pip requirements * attempt to fix conda init error * remove existing conda envs * add pip dependency to conda * pls work conda pls
- Loading branch information
Showing
10 changed files
with
84 additions
and
44 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,43 @@ | ||
name: Test Notebooks | ||
|
||
on: push | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- name: Set up Conda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: myenv | ||
environment-file: environment.yml | ||
python-version: "3.11" | ||
auto-activate-base: false | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements.txt | ||
- name: Prepare Conda environment | ||
shell: bash -l {0} | ||
run: | | ||
if conda env list | grep -q 'myenv'; then | ||
echo "Environment 'myenv' already exists, updating environment" | ||
conda env update --name myenv --file environment.yml --prune | ||
else | ||
echo "Creating new environment 'myenv'" | ||
conda env create -f environment.yml | ||
fi | ||
- name: Run notebook tests | ||
run: python tests/test_notebooks.py | ||
env: | ||
IONQ_API_KEY: ${{ secrets.IONQ_API_KEY }} | ||
- name: Run notebook tests | ||
shell: bash -l {0} | ||
run: | | ||
conda activate myenv | ||
python tests/test_notebooks.py | ||
env: | ||
IONQ_API_KEY: ${{ secrets.IONQ_API_KEY }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ share/python-wheels/ | |
# Distribution / packaging | ||
.Python | ||
env/ | ||
venv/ | ||
ionq/ | ||
build/ | ||
develop-eggs/ | ||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: myenv | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python=3.11 | ||
- pip | ||
- matplotlib | ||
- jupyter | ||
# Add other dependencies here, for Conda packages. | ||
- pip: | ||
# Pip-only packages here, if any. | ||
- qiskit | ||
- qiskit-ionq | ||
- cirq | ||
- cirq-ionq | ||
- pennylane | ||
- pennylane-ionq | ||
- projectq | ||
- cuda-quantum | ||
- pylatexenc | ||
- requests |
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
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
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
This file was deleted.
Oops, something went wrong.