-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): Use a version matrix and let rye pin the python version
- Loading branch information
1 parent
a415fe7
commit 50eb143
Showing
3 changed files
with
25 additions
and
15 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 |
---|---|---|
|
@@ -27,26 +27,32 @@ on: | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- name: Set up Python 3.12 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.12" | ||
# - name: Set up Python 3.12 | ||
# uses: actions/[email protected] | ||
# with: | ||
# python-version: "${{ matrix.python-version }}" | ||
|
||
- name: Setup Rye | ||
id: setup-rye | ||
uses: eifinger/setup-rye@v4 | ||
with: | ||
version: "0.41.0" | ||
enable-cache: true | ||
cache-prefix: python-${{ matrix.python-version }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install Project Dependencies | ||
run: rye sync --all-features --no-lock | ||
run: | | ||
rye pin --no-update-requires-python '${{ matrix.python-version }}' | ||
rye sync --all-features --no-lock | ||
- name: Run pre-commit | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -29,10 +29,10 @@ jobs: | |
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- name: Set up Python 3.12 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.12" | ||
# - name: Set up Python 3.12 | ||
# uses: actions/[email protected] | ||
# with: | ||
# python-version: "3.12" | ||
|
||
- name: Setup Rye | ||
id: setup-rye | ||
|
@@ -42,7 +42,9 @@ jobs: | |
version: "0.41.0" | ||
|
||
- name: Install Project Dependencies | ||
run: rye sync --all-features --no-lock | ||
run: | | ||
rye pin --no-update-requires-python '3.12' | ||
rye sync --all-features --no-lock | ||
- name: Make docs | ||
working-directory: ${{env.working-directory}} | ||
|
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 |
---|---|---|
|
@@ -28,10 +28,10 @@ jobs: | |
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- name: Set up Python 3.12 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.12" | ||
# - name: Set up Python 3.12 | ||
# uses: actions/[email protected] | ||
# with: | ||
# python-version: "3.12" | ||
|
||
- name: Setup Rye | ||
id: setup-rye | ||
|
@@ -42,7 +42,9 @@ jobs: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install Project Dependencies | ||
run: rye sync --all-features --no-lock | ||
run: | | ||
rye pin --no-update-requires-python '3.12' | ||
rye sync --all-features --no-lock | ||
- name: Build project | ||
run: rye build --all --clean | ||
|