Skip to content

Commit

Permalink
Merge pull request #875 from edgarrmondragon/codspeed-ubuntu-22.04
Browse files Browse the repository at this point in the history
Use v3 of the CodSpeed action
  • Loading branch information
sdispater authored Jan 16, 2025
2 parents 6383c07 + c63734d commit 7642246
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
python -c 'import pendulum._pendulum'
- name: Run benchmarks
uses: CodSpeedHQ/action@v1
uses: CodSpeedHQ/action@v3
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: pytest tests/ --codspeed
12 changes: 2 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,7 @@ jobs:
- name: Install poetry
run: |
curl -fsS https://install.python-poetry.org | python - --preview -y
- name: Update PATH
if: ${{ matrix.os != 'Windows' }}
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Update Path for Windows
if: ${{ matrix.os == 'Windows' }}
run: echo "$APPDATA\Python\Scripts" >> $GITHUB_PATH
pipx install poetry>=2
- name: Configure poetry
run: poetry config virtualenvs.in-project true
Expand Down Expand Up @@ -90,7 +82,7 @@ jobs:

- name: Uninstall typing dependencies
# This ensures pendulum runs without typing_extensions installed
run: poetry install --only main --only test --only build --sync --no-root -vvv
run: poetry sync --only main --only test --only build --no-root -vvv

- name: Test Pure Python
run: |
Expand Down
Loading

0 comments on commit 7642246

Please sign in to comment.