From 144a1dad46333d9be9c55fc8d2f228325f9c5ac7 Mon Sep 17 00:00:00 2001 From: Kenza Tazi Date: Thu, 7 Sep 2023 11:42:46 +0100 Subject: [PATCH] additional info for conda incubator --- .github/workflows/test.yml | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cc1a910..c17e40f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: - # # Run in all these versions of Python + # Run in all these versions of Python python-version: ["3.10"] # 3.5, 3.6, 3.7, steps: @@ -36,33 +36,17 @@ jobs: - name: Install Miniconda uses: conda-incubator/setup-miniconda@v2 with: - activate-environment: anaconda-client-env + activate-environment: test-env + channels: conda-forge + channel-priority: true + python-version: "3.10" environment-file: environment.yml + mamba-version: "*" auto-activate-base: false + use-mamba: true - run: | conda info conda list - #- name: Install pip - # run: python -m pip install --upgrade pip - - # Install the conda environment - #- name: Install conda environment - # run: conda env create -f environment.yml - - #- name: Install conda dependencies - # run: $CONDA/bin/conda env update --file environment.yml --name base - # python -m pip install --upgrade conda - - #$CONDA/bin/conda env update --file environment.yml --name base - # CONDA is an environment variable pointing to the root of the miniconda directory - - - # Install pytest (if not in conda env) (you can use some other testing utility) - #- name: Install pytest - # run: | - # python -m pip install --upgrade pip - # pip install pytest - # Run the tests. I'm using pytest and the file is in the tests directory. - name: Run tests run: pytest tests.py \ No newline at end of file