From b8763e1c53ac1d47e2b78f3f48fca778d9387a2f Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Tue, 12 Dec 2023 20:28:16 -0300 Subject: [PATCH] ci: fix python version on macos --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 877c6dd..870ede5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,6 +43,7 @@ jobs: - name: Coverage run: | - export PATH="/Users/runner/Library/Python/2.7/bin:$PATH" + export MY_PYTHON_VER=$(python -c 'import sys; print(".".join(sys.version.split(".")[0:2]))') + export PATH="/Users/runner/Library/Python/$MY_PYTHON_VER/bin:$PATH" coveralls -b . -i src --dump c.report.json luacov-coveralls -j c.report.json -v -t ${{ secrets.GITHUB_TOKEN }}