Skip to content

Commit

Permalink
[GitHub Actions] Use pyproject.toml to specify Python version
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Aug 3, 2023
1 parent e227cf9 commit 51e82f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ jobs:
os: [ubuntu-latest]
# Container action (for PostgreSQL) is only supported on Linux
postgresql-version: ['12.1']
python-version: ['3.10.10']
# python-version: ['3.11.0-rc.2']
# continue-on-error: ${{ matrix.python-version == '3.11.0-rc.2' }}
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -27,10 +24,10 @@ jobs:
postgresql db: harmonbot
postgresql user: harmonbot
postgresql password: ""
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
python-version-file: pyproject.toml
architecture: x64
- name: Cache pip
uses: actions/[email protected]
Expand Down Expand Up @@ -58,17 +55,14 @@ jobs:
max-parallel: 1
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
python-version: ['3.10.10']
# python-version: ['3.11.0-rc.2']
# continue-on-error: ${{ matrix.python-version == '3.11.0-rc.2' }}
runs-on: ${{ matrix.os }}

steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
python-version-file: pyproject.toml
architecture: x64
- uses: actions/[email protected]
if: startsWith(runner.os, 'Linux')
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.10.10'
python-version-file: pyproject.toml
architecture: x64
- name: Cache pip
uses: actions/[email protected]
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.10.10'
python-version-file: pyproject.toml
architecture: x64
- name: Cache pip
uses: actions/[email protected]
Expand Down

0 comments on commit 51e82f7

Please sign in to comment.