Skip to content

Commit

Permalink
Tidy $PYTHON_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
antonymilne committed Dec 5, 2023
1 parent f4e02c8 commit d088341
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

env:
PYTHON_VERSION: "3.9"

jobs:
check-version:
runs-on: ubuntu-latest
Expand All @@ -13,7 +16,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: $PYTHON_VERSION
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down Expand Up @@ -50,7 +53,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: $PYTHON_VERSION
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down Expand Up @@ -103,7 +106,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: $PYTHON_VERSION
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/secret-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
workflow_dispatch:
schedule:
- cron: "0 4 * * *" # run once a day at 4 AM

env:
PYTHON_VERSION: "3.9"

jobs:
scan:
name: gitleaks
Expand All @@ -14,10 +18,10 @@ jobs:

- uses: actions/setup-go@v4

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

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

0 comments on commit d088341

Please sign in to comment.