Skip to content

Commit

Permalink
Problem: GH actions does not understand python_version
Browse files Browse the repository at this point in the history
Solution: use the proper `python-version`
  • Loading branch information
gotcha committed May 21, 2020
1 parent 638d92a commit 911dfb3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python-runners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python_version: [2.7, 3.5, 3.6, 3.7, 3.8]
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v2
- uses: crazy-max/ghaction-chocolatey@v1
if: matrix.python_version == '2.7' && matrix.os == 'windows-latest'
if: matrix.python-version == '2.7' && matrix.os == 'windows-latest'
with:
args: install vcpython27
- name: Set up Python ${{ matrix.python_version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python_version: ${{ matrix.python_version }}
python-version: ${{ matrix.python-version }}
- name: Cache eggs
uses: actions/cache@v1.2.0
with:
path: eggs
key: ${{ matrix.os }}-{{ matrix.python_version }}-eggs
key: ${{ matrix.os }}-{{ matrix.python-version }}-eggs
- name: Install dev environment
run: |
python dev.py
Expand Down

0 comments on commit 911dfb3

Please sign in to comment.