-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup new workflow for checks using tox and uv
- Loading branch information
Islam Alibekov
committed
Dec 13, 2024
1 parent
07ce4b2
commit 663c72b
Showing
6 changed files
with
287 additions
and
174 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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Checks | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
test: | ||
name: test with ${{ matrix.env }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 10 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
env: | ||
- "3.13" | ||
- "3.12" | ||
# - "3.11" | ||
# - "3.10" | ||
# - "3.9" | ||
os: | ||
- ubuntu-latest | ||
# - macos-latest | ||
|
||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v4 | ||
with: | ||
# Install a specific version of uv. | ||
version: "0.5.8" | ||
enable-cache: true | ||
|
||
# - name: Install dependencies | ||
# run: make deps | ||
|
||
# - name: Install tox | ||
# run: uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv --with tox-gh | ||
|
||
- name: Install Python | ||
# Python 3.13 was installed above already | ||
# if: matrix.env != '3.13' | ||
run: uv python install --python-preference only-managed ${{ matrix.env }} | ||
|
||
- name: Install dependencies | ||
run: make deps | ||
|
||
- name: Run test suite | ||
run: tox run | ||
env: | ||
TOX_GH_MAJOR_MINOR: ${{ matrix.env }} |
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 |
---|---|---|
@@ -1,28 +1,39 @@ | ||
name: Tests | ||
# name: Tests | ||
|
||
on: [pull_request] | ||
# on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
# jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# timeout-minutes: 10 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# python-version: | ||
# - "3.9" | ||
# - "3.10" | ||
# - "3.11" | ||
# - "3.12" | ||
# - "3.13" | ||
|
||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
# steps: | ||
# - name: Checkout sources | ||
# uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
# - name: Install uv | ||
# uses: astral-sh/setup-uv@v4 | ||
# with: | ||
# # Install a specific version of uv. | ||
# version: "0.5.8" | ||
|
||
- name: Install dependencies | ||
run: make deps | ||
# - name: Set up Python | ||
# uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: ${{ matrix.python-version }} | ||
|
||
- name: Run checks | ||
run: make tox | ||
# - name: Install dependencies | ||
# run: make deps | ||
|
||
# - name: Run checks | ||
# run: make tox |
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
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
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
Oops, something went wrong.