Skip to content

Commit

Permalink
Correct env variable syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
antonymilne committed Dec 5, 2023
1 parent d088341 commit 98d5948
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: $PYTHON_VERSION
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: $PYTHON_VERSION
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: $PYTHON_VERSION
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/checks-vizro-ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ jobs:
with:
fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }}

- name: Set up Python $PYTHON_VERSION
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: $PYTHON_VERSION
python-version: ${{ env.PYTHON_VERSION }}

- name: Install Hatch
run: pip install --upgrade hatch

- name: List dependencies
run: hatch run all.py$PYTHON_VERSION:pip freeze
run: hatch run all.py${{ env.PYTHON_VERSION }}:pip freeze

- name: Check requirements for Snyk are up to date
run: hatch run all.py$PYTHON_VERSION:update-snyk-requirements --check
run: hatch run all.py${{ env.PYTHON_VERSION }}:update-snyk-requirements --check

- name: Find added changelog fragments
id: added-files
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/checks-vizro-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ jobs:
with:
fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }}

- name: Set up Python $PYTHON_VERSION
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: $PYTHON_VERSION
python-version: ${{ env.PYTHON_VERSION }}

- name: Install Hatch
run: pip install --upgrade hatch

- name: List dependencies
run: hatch run all.py$PYTHON_VERSION:pip freeze
run: hatch run all.py${{ env.PYTHON_VERSION }}:pip freeze

- name: Check schema is up to date
run: hatch run all.py$PYTHON_VERSION:schema --check
run: hatch run all.py${{ env.PYTHON_VERSION }}:schema --check

- name: Check requirements for Snyk are up to date
run: hatch run all.py$PYTHON_VERSION:update-snyk-requirements --check
run: hatch run all.py${{ env.PYTHON_VERSION }}:update-snyk-requirements --check

- name: Find added changelog fragments
id: added-files
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint-vizro-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ jobs:
with:
fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }}

- name: Set up Python $PYTHON_VERSION
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: $PYTHON_VERSION
python-version: ${{ env.PYTHON_VERSION }}

- name: Install Hatch
run: pip install --upgrade hatch

- name: Lint
run: hatch run lint:lint
run: hatch run lint
4 changes: 2 additions & 2 deletions .github/workflows/secret-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:

- uses: actions/setup-go@v4

- name: Set up Python $PYTHON_VERSION
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: $PYTHON_VERSION
python-version: ${{ env.PYTHON_VERSION }}

- name: Install pre-commit
run: pip install pre-commit
Expand Down

0 comments on commit 98d5948

Please sign in to comment.