Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixes codespeed workflow
  • Loading branch information
rudolfix committed Feb 25, 2025
commit 4e513e5055238149641344123e3ad9392e978a7d
17 changes: 5 additions & 12 deletions .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/setup-python@v4
with:
python-version: "3.9"

Expand All @@ -25,28 +25,21 @@ jobs:

- name: Install poetry
run: |
curl -fsS https://install.python-poetry.org | python - -y

- name: Update PATH
if: ${{ matrix.os != 'Windows' }}
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
pipx install poetry>=2

- name: Configure poetry
run: poetry config virtualenvs.create false
run: poetry config virtualenvs.in-project true

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

- name: Install project
run: poetry install --only test --only benchmark --only build -vvv --no-root

- name: Install pendulum and check extensions
run: |
poetry run pip install -e . -vvv
python -c 'import pendulum._pendulum'
poetry run python -c 'import pendulum._pendulum'

- name: Run benchmarks
uses: CodSpeedHQ/action@v3
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: pytest tests/ --codspeed
run: poetry run pytest tests/ --codspeed
74 changes: 26 additions & 48 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,5 @@ omit = [
]

[build-system]
# requires = ["poetry-core>=1.0.8"]
# build-backend = "poetry.core.masonry.api"
requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"
2 changes: 1 addition & 1 deletion rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "_pendulum"
version = "3.0.1"
version = "3.0.0"
edition = "2021"

[lib]
Expand Down