-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47db586
commit 673f769
Showing
5 changed files
with
91 additions
and
15 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,44 @@ | ||
name: codspeed | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
pull_request: | ||
# `workflow_dispatch` allows CodSpeed to trigger backtest | ||
# performance analysis in order to generate initial data. | ||
workflow_dispatch: | ||
|
||
jobs: | ||
benchmarks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repository | ||
uses: actions/[email protected] | ||
|
||
- name: Setup Python 3.11 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.11 | ||
architecture: x64 | ||
|
||
- name: Install poetry | ||
run: | | ||
curl -fsS https://install.python-poetry.org | python - -y | ||
- name: Configure poetry | ||
run: poetry config virtualenvs.create false | ||
|
||
- name: Install project | ||
run: > | ||
poetry install | ||
-vvv | ||
--with dev | ||
--with benchmark | ||
--all-extras | ||
- name: Run benchmarks | ||
uses: CodSpeedHQ/action@v1 | ||
with: | ||
token: ${{ secrets.CODSPEED_TOKEN }} | ||
run: pytest tests/ --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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,6 @@ jobs: | |
- { session: tests, python-version: "3.11", os: "ubuntu-latest", sqlalchemy: "1.*" } | ||
- { session: doctest, python-version: "3.10", os: "ubuntu-latest", sqlalchemy: "2.*" } | ||
- { session: mypy, python-version: "3.8", os: "ubuntu-latest", sqlalchemy: "2.*" } | ||
- { session: benches, python-version: "3.10", os: "ubuntu-latest", sqlalchemy: "2.*" } | ||
|
||
steps: | ||
- name: Check out the repository | ||
|
@@ -101,13 +100,6 @@ jobs: | |
name: coverage-data | ||
path: ".coverage.*" | ||
|
||
- name: Upload Benchmark Result | ||
if: always() && (matrix.session == 'benches') | ||
uses: actions/[email protected] | ||
with: | ||
name: benchmark_results | ||
path: output.json | ||
|
||
tests-external: | ||
name: External Tests | ||
runs-on: ubuntu-latest | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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