-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from simonprovost/refactor/uv_migration
- Loading branch information
Showing
12 changed files
with
3,045 additions
and
3,466 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,35 @@ | ||
name: pytest | ||
name: ci-tests | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
jobs: | ||
unit: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.9", "3.10"] | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
permissions: | ||
contents: read | ||
|
||
- name: Checkout this repository | ||
uses: actions/checkout@v3 | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pdm-project/setup-pdm@main | ||
name: Setup PDM | ||
- name: Install uv & Python | ||
uses: astral-sh/setup-uv@v4 | ||
with: | ||
architecture: x64 | ||
prerelease: false | ||
enable-pep582: true | ||
version: "0.5.11" | ||
enable-cache: true | ||
python-version: "cpython-3.9.21-linux-x86_64-gnu" | ||
|
||
- name: Install dependencies from pdm.lock | ||
- name: Lock & Sync All Dependencies | ||
run: | | ||
pdm install --dev | ||
- name: Run tests | ||
run: pdm run tests_unit | ||
|
||
system: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.9"] | ||
os: [ubuntu-latest] | ||
uv lock | ||
uv sync --all-groups | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Checkout this repository | ||
uses: actions/checkout@v3 | ||
|
||
- uses: pdm-project/setup-pdm@main | ||
name: Setup PDM | ||
with: | ||
architecture: x64 | ||
prerelease: false | ||
enable-pep582: true | ||
|
||
- name: Install dependencies from pdm.lock | ||
- name: Run Tests Unit | ||
run: | | ||
pdm install --dev | ||
uv run pytest -sv tests/unit | ||
- name: Run tests | ||
run: pdm run tests_system | ||
- name: Run Tests System | ||
run: | | ||
uv run pytest -sv tests/system |
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,41 +1,38 @@ | ||
name: Test --pre | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "00 0 * * 1" | ||
|
||
jobs: | ||
unit: | ||
name: Run tests with prereleases | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.9", "3.10"] | ||
python-version: ["3.9.21"] | ||
os: [ubuntu-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Checkout this repository | ||
uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pdm-project/setup-pdm@main | ||
name: Setup PDM | ||
- name: Install uv & Python | ||
uses: astral-sh/setup-uv@v4 | ||
with: | ||
architecture: x64 | ||
prerelease: false | ||
enable-pep582: true | ||
use-cache: false | ||
pip-args: "--pre" | ||
pytest-args: "-W error -W ignore::sklearn.exceptions.ConvergenceWarning" | ||
version: "0.5.11" | ||
enable-cache: true | ||
python-version: "cpython-3.9.21-linux-x86_64-gnu" | ||
|
||
- name: Install dependencies from pdm.lock | ||
- name: Lock dependencies with pre-releases | ||
run: | | ||
pdm install --dev | ||
uv lock --prerelease allow | ||
- name: Sync All Groups | ||
run: | | ||
uv sync --all-groups | ||
- name: Run tests | ||
run: pdm run tests_unit | ||
run: | | ||
uv run pytest -sv tests/unit |
Oops, something went wrong.