diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 16a784e..975c870 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -5,9 +5,6 @@ on: tags: - '*' -env: - PY_VERSION: "3.11" - jobs: conda: @@ -24,7 +21,7 @@ jobs: uses: conda-incubator/setup-miniconda@11b562958363ec5770fef326fe8ef0366f8cbf8a with: miniconda-version: "latest" - python-version: ${{ env.PY_VERSION }} + python-version: ${{ vars.PY_VERSION }} environment-file: conda/env_build.yml auto-update-conda: false auto-activate-base: false @@ -34,7 +31,7 @@ jobs: uses: uibcdf/action-build-and-upload-conda-packages@c6e7a90ad5e599d6cde76e130db4ee52ad733ecf with: meta_yaml_dir: conda - python-version: ${{ env.PY_VERSION }} + python-version: ${{ vars.PY_VERSION }} user: accessnri label: main token: ${{ secrets.anaconda_token }} diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 27ce022..d1211d1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -10,8 +10,6 @@ on: branches: main # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -env: - PY_VERSION: "3.11" jobs: # JOB to run change in the build files @@ -51,7 +49,7 @@ jobs: uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3.0.4 with: miniconda-version: "latest" - python-version: ${{ env.PY_VERSION }} + python-version: ${{ vars.PY_VERSION }} environment-file: .conda/env_build.yml auto-activate-base: false auto-update-conda: false @@ -117,7 +115,7 @@ jobs: # - name: Upload code coverage # # Only upload once for the installed version - # if: ${{ matrix.python-version == env.PY_VERSION }} + # if: ${{ matrix.python-version == vars.PY_VERSION }} # uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 #v4.6.0 # with: # token: ${{ secrets.codecov_token }}