Skip to content

remove existing conda envs #92

remove existing conda envs

remove existing conda envs #92

Workflow file for this run

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: myenv
environment-file: environment.yml
python-version: "3.11"
auto-activate-base: false
- name: Remove existing environment (if exists)
shell: bash -l {0}
run: |
conda env remove --name myenv || true
- name: Install dependencies and run tests
shell: bash -l {0}
run: |
conda env create -f environment.yml
conda activate myenv
python tests/test_notebooks.py
env:
IONQ_API_KEY: ${{ secrets.IONQ_API_KEY }}