Skip to content

Commit 4e513e5

Browse files
committed
fixes codespeed workflow
1 parent 073d3c4 commit 4e513e5

File tree

5 files changed

+33
-64
lines changed

5 files changed

+33
-64
lines changed

Diff for: .github/workflows/codspeed.yml

+5-12
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v3
17-
- uses: actions/setup-python@v3
17+
- uses: actions/setup-python@v4
1818
with:
1919
python-version: "3.9"
2020

@@ -25,28 +25,21 @@ jobs:
2525
2626
- name: Install poetry
2727
run: |
28-
curl -fsS https://install.python-poetry.org | python - -y
29-
30-
- name: Update PATH
31-
if: ${{ matrix.os != 'Windows' }}
32-
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
28+
pipx install poetry>=2
3329
3430
- name: Configure poetry
35-
run: poetry config virtualenvs.create false
31+
run: poetry config virtualenvs.in-project true
3632

3733
- name: Install dependencies
3834
run: poetry install --only test --only benchmark --only build -vvv --no-root
3935

40-
- name: Install project
41-
run: poetry install --only test --only benchmark --only build -vvv --no-root
42-
4336
- name: Install pendulum and check extensions
4437
run: |
4538
poetry run pip install -e . -vvv
46-
python -c 'import pendulum._pendulum'
39+
poetry run python -c 'import pendulum._pendulum'
4740
4841
- name: Run benchmarks
4942
uses: CodSpeedHQ/action@v3
5043
with:
5144
token: ${{ secrets.CODSPEED_TOKEN }}
52-
run: pytest tests/ --codspeed
45+
run: poetry run pytest tests/ --codspeed

Diff for: poetry.lock

+26-48
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pyproject.toml

-2
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,5 @@ omit = [
217217
]
218218

219219
[build-system]
220-
# requires = ["poetry-core>=1.0.8"]
221-
# build-backend = "poetry.core.masonry.api"
222220
requires = ["maturin>=1.0,<2.0"]
223221
build-backend = "maturin"

Diff for: rust/Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: rust/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "_pendulum"
3-
version = "3.0.1"
3+
version = "3.0.0"
44
edition = "2021"
55

66
[lib]

0 commit comments

Comments
 (0)