From 25ebd55c56a6bf87bae30e2f77f30feaa98e9dfb Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Tue, 14 Feb 2023 21:17:11 -0600 Subject: [PATCH] Fix windows github CI --- .github/workflows/conda-package.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index bd55a54146..def8dd6d98 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -185,6 +185,7 @@ jobs: conda-build-version: '*' miniconda-version: 'latest' activate-environment: "numba_dpex_wintest" + python-version: ${{ matrix.python }} - name: Create conda channel run: | mkdir -p $env:GITHUB_WORKSPACE/channel/win-64 @@ -195,9 +196,9 @@ jobs: - name: Collect dependencies run: conda install ${{ env.PACKAGE_NAME }} python=${{ matrix.python }} -c $env:GITHUB_WORKSPACE/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile - name: Cache conda packages - uses: actions/cache@v2 + uses: actions/cache@v3 env: - CACHE_NUMBER: 1 # Increase to reset cache + CACHE_NUMBER: 2 # Increase to reset cache with: path: /home/runner/conda_pkgs_dir key: @@ -251,8 +252,9 @@ jobs: - name: Add dpnp skip variable run: echo "NUMBA_DPEX_TESTING_SKIP_NO_DPNP=1" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - name: Run tests - run: | - python -m pytest -q -ra --disable-warnings --pyargs ${{ env.MODULE_NAME }} -vv + shell: cmd /C CALL {0} + run: >- + conda activate numba_dpex_wintest && python -m pytest -q -ra --disable-warnings --pyargs ${{ env.MODULE_NAME }} -vv upload_linux: needs: test_linux