From a9272d2137cfab3b912f88e351daffa9cc909572 Mon Sep 17 00:00:00 2001 From: Philipp Rouast Date: Sat, 4 Jan 2025 20:13:14 +1100 Subject: [PATCH] Attempt again to fix issue with test setup on windows --- .github/workflows/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c404f1b..291a64c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -66,12 +66,19 @@ jobs: python -m pip install ".[test]" - name: Set development API_URL for non-main branches if: github.ref != 'refs/heads/main' - run: echo API_URL=https://api.rouast.com/vitallens-dev >> %GITHUB_ENV% + run: echo "Setting development API_URL" + env: + API_URL: "https://api.rouast.com/vitallens-dev" + - name: Confirm API_URL is set + run: echo "API_URL=${API_URL}" + env: + API_URL: ${{ env.API_URL }} - name: Lint with flake8 run: | flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - name: Test with pytest env: + API_URL: ${{ env.API_URL }} VITALLENS_DEV_API_KEY: ${{ secrets.VITALLENS_DEV_API_KEY }} run: | pytest