From 85719cdbb22912fef6f16fefb337b7a92042d31b Mon Sep 17 00:00:00 2001 From: Milan Krneta Date: Tue, 30 Apr 2024 13:29:44 -0700 Subject: [PATCH] try to fix path again --- .github/workflows/python-package.yml | 2 +- tox.ini | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index b2296f8..eeb88dd 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -29,7 +29,7 @@ jobs: env: GH_PRIVATE_TOKEN: ${{secrets.TEMP_PAT_EXP_JUL_28}} run: | - tox -e unit-tests + tox -e gh-action-unit-tests - name: Upload coverage report to Codecov uses: codecov/codecov-action@v3 if: ${{ strategy.job-index }} == 0 diff --git a/tox.ini b/tox.ini index 5bb3144..fd02902 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,22 @@ [tox] envlist = linters,docs,unit-tests +[testenv:gh-action-unit-tests] +basepython = python3 +passenv = * +setenv = + JULIA_PKG_USE_CLI_GIT=true + JULIA_CONDAPKG_BACKEND="Null" +# {posargs} contains additional arguments specified when invoking tox. e.g. tox -- -s -k test_foo.py +deps = + {[test-deps]deps} +allowlist_externals = + sed +commands = + sed -i '' -e 's/git@github.com:amazon-braket\/BraketSimulator.jl.git/https:\/\/{env:'$GH_PRIVATE_TOKEN'}@github.com:amazon-braket\/BraketSimulator.jl.git/' ${env:GITHUB_WORKSPACE}/../src/braket/juliapkg.json + {[testenv:unit-tests]commands} +extras = test + [testenv:unit-tests] basepython = python3 passenv = * @@ -14,7 +30,6 @@ allowlist_externals = pytest sed commands = - sed -i '' -e 's/git@github.com:amazon-braket\/BraketSimulator.jl.git/https:\/\/{env:'$GH_PRIVATE_TOKEN'}@github.com:amazon-braket\/BraketSimulator.jl.git/' ${env:GITHUB_WORKSPACE}/src/braket/juliapkg.json pytest {posargs} --cov-report term-missing --cov-report html --cov-report xml --cov=braket extras = test