Skip to content

Commit

Permalink
fix: pass matrix values in env
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmanuel-tirado committed May 16, 2024
1 parent 63f8712 commit 056c949
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions/install-poetry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ runs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ PYTHON_VERSION }}

- name: Load cached Poetry installation
id: cached-poetry
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/install-python-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ runs:
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: ~/.venv-${{ runner.os }}-${{ matrix.python-version }}
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
path: ~/.venv-${{ RUNNER_OS }}-${{ PYTHON_VERSION }}
key: venv-${{ RUNNER_OS }}-${{ PYTHON_VERSION }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
shell: bash
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ jobs:
token: ${{ secrets.GH_TOKEN || github.token }}

- uses: pantos-io/ci-workflows/.github/actions/install-python-deps@v1
env:
PYTHON_VERSION: '${{ matrix.python-version }}'
RUNNER_OS: '${{ matrix.os }}'

- name: UnitTest
env:
Expand Down

0 comments on commit 056c949

Please sign in to comment.