Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Define PYTHON_VERSION in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rebkwok committed Mar 25, 2024
1 parent 36307cb commit 11de86c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ jobs:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

runs-on: ubuntu-latest

env:
PYTHON_VERSION: python${{ matrix.python-version }}

steps:
- uses: actions/checkout@v4
- uses: "opensafely-core/setup-action@v1"
- uses: "opensafely-core/setup-action@v1.2.0"
with:
python-version: ${{ matrix.python-version }}
install-just: true
Expand All @@ -27,10 +30,13 @@ jobs:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

runs-on: ubuntu-latest

env:
PYTHON_VERSION: python${{ matrix.python-version }}

steps:
- uses: actions/checkout@v4
- uses: "opensafely-core/setup-action@v1"
- uses: "opensafely-core/setup-action@v1.2.0"
with:
python-version: ${{ matrix.python-version }}
install-just: true
Expand All @@ -44,6 +50,9 @@ jobs:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

runs-on: ubuntu-latest

env:
PYTHON_VERSION: python${{ matrix.python-version }}

name: Test we can build a Python package
steps:
Expand Down

0 comments on commit 11de86c

Please sign in to comment.