From 3d0794d806922de302361cfe183a71852b5066ba Mon Sep 17 00:00:00 2001 From: "Mauricio A. Rovira Galvez" <8482308+marovira@users.noreply.github.com> Date: Thu, 20 Jun 2024 15:37:05 -0700 Subject: [PATCH] [brief] Fixing the path for windows runners. [detailed] --- .github/workflows/tests.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e70d414..b40a707 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -53,7 +53,12 @@ jobs: python -m pip install numpy==1.26.4 python -m pip install -r requirements/ci.txt - echo "$VIRTUAL_ENV/bin" >> $GITHUB_PATH + + if [[ "$RUNNER" == "windows-latest" ]]; then + eco "$VIRTUAL_ENV/Scripts" >> $GITHUB_PATH + else + echo "$VIRTUAL_ENV/bin" >> $GITHUB_PATH + fi echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> $GITHUB_ENV - name: Install Helios @@ -62,17 +67,20 @@ jobs: pip install . - name: Ruff + shell: bash run: | ruff check src/helios ruff check test ruff check examples/cifar10 - name: Mypy + shell: bash run: | mypy src/helios mypy test mypy examples/cifar10 - name: Pytest + shell: bash run: | python -m pytest