Skip to content

Commit ff2cbc2

Browse files
authored
ci: fix python version on macos (#173)
1 parent 97b522e commit ff2cbc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
4444
- name: Coverage
4545
run: |
46-
export PATH="/Users/runner/Library/Python/2.7/bin:$PATH"
46+
export MY_PYTHON_VER=$(python -c 'import sys; print(".".join(sys.version.split(".")[0:2]))')
47+
export PATH="/Users/runner/Library/Python/$MY_PYTHON_VER/bin:$PATH"
4748
coveralls -b . -i src --dump c.report.json
4849
luacov-coveralls -j c.report.json -v -t ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)