forked from collerek/ormar
-
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 branch 'master' into fix-fk-null-update
- Loading branch information
Showing
6 changed files
with
368 additions
and
86 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: codspeed-benchmarks | ||
|
||
on: | ||
push: | ||
branches: [ master, pydantic_v2 ] | ||
pull_request: | ||
branches: [ master, pydantic_v2 ] | ||
# `workflow_dispatch` allows CodSpeed to trigger backtest | ||
# performance analysis in order to generate initial data. | ||
workflow_dispatch: | ||
|
||
jobs: | ||
benchmarks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
with: | ||
version: 1.4.2 | ||
virtualenvs-create: false | ||
|
||
- name: Poetry details | ||
run: | | ||
poetry --version | ||
poetry config --list | ||
- name: Install dependencies | ||
run: poetry install --extras "all" | ||
|
||
- name: Run benchmarks | ||
uses: CodSpeedHQ/action@v2 | ||
with: | ||
token: ${{ secrets.CODSPEED_TOKEN }} | ||
run: poetry run pytest benchmarks/ --codspeed |
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 |
---|---|---|
|
@@ -67,7 +67,7 @@ jobs: | |
run: bash scripts/test.sh | ||
- run: mypy ormar tests benchmarks | ||
- name: Upload coverage | ||
uses: codecov/[email protected].4 | ||
uses: codecov/[email protected].6 | ||
- name: Test & publish code coverage | ||
uses: paambaati/[email protected] | ||
if: github.event.pull_request.head.repo.full_name == 'collerek/ormar' | ||
|
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
Oops, something went wrong.