-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uv is enormously faster, more intuitive, can install and manage different python versions, has clearer error messages. Thus, this should also speed up CI pipeline see https://docs.astral.sh/uv/ for more info
- Loading branch information
Showing
6 changed files
with
46 additions
and
82 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 |
---|---|---|
@@ -1,29 +1,20 @@ | ||
name: Setup Test Environment | ||
description: "Install poetry, use poetry to install dependencies" | ||
description: "Install uv, use uv to install dependencies" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: create cachedir | ||
run: mkdir ~/poetry-cache/ | ||
shell: bash | ||
- name: Setup Caching | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/pypoetry-cache/ | ||
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
python-version: 3.10.x | ||
- name: Install Poetry | ||
run: python3 -m pip install poetry==1.4.0 --upgrade pip | ||
shell: bash | ||
- name: Configure Poetry | ||
run: poetry config cache-dir ~/poetry-cache/ | ||
shell: bash | ||
- run: python --version | ||
version: "0.5.4" | ||
|
||
- name: python setup | ||
shell: bash | ||
- name: Install dependencies | ||
run: poetry install --no-interaction | ||
run: uv python install | ||
|
||
- name: install project | ||
shell: bash | ||
run: uv sync --all-extras --dev |
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
uses: ./.github/actions/setup_test_environment | ||
|
||
- name: Create coverage report | ||
run: poetry run python -m pytest --cov-report xml --cov elasticai.creator -m "not simulation" tests elasticai | ||
run: uv run python -m pytest --cov-report xml --cov elasticai.creator -m "not simulation" tests elasticai | ||
|
||
- name: Publish coverage report | ||
uses: orgoro/[email protected] | ||
|
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 @@ | ||
python3.10 |
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