-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GitHub Actions] Use pyproject.toml to specify Python version
- Loading branch information
Showing
2 changed files
with
6 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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] | ||
|
@@ -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') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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] | ||
|