-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Showing
89 changed files
with
866 additions
and
1,670 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,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: monthly # or daily, weekly | ||
groups: | ||
dependencies: | ||
patterns: | ||
- '*' |
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 |
---|---|---|
|
@@ -22,6 +22,14 @@ jobs: | |
shell: bash -el {0} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha || github.ref }} | ||
|
||
- name: Set up swap space | ||
uses: pierotofy/[email protected] | ||
with: | ||
swap-size-gb: 10 | ||
|
||
- uses: mamba-org/setup-micromamba@v1 # https://github.com/mamba-org/setup-micromamba | ||
with: | ||
cache-environment: false | ||
|
@@ -33,8 +41,24 @@ jobs: | |
ada-py | ||
python=3.12 | ||
pytest | ||
pytest-benchmark | ||
pytest-codspeed | ||
- name: Install latest version | ||
run: | | ||
pip install -e . | ||
# - name: Run pytest-benchmark | ||
# run: pytest ./tests --ignore=./tests/fem/ --ignore=./tests/full/ --benchmark-json output.json | ||
# | ||
# - name: Store benchmark result | ||
# uses: benchmark-action/github-action-benchmark@v1 | ||
# with: | ||
# tool: 'pytest' | ||
# output-file-path: output.json | ||
# # Enable Job Summary for PRs | ||
# summary-always: true | ||
|
||
- name: Run benchmarks | ||
uses: CodSpeedHQ/action@v3 | ||
with: | ||
|
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 |
---|---|---|
@@ -1,15 +1,13 @@ | ||
name: Pull Request Tests | ||
|
||
on: | ||
pull_request_target: | ||
types: [ opened, synchronize, edited, unlabeled ] | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
|
||
# Use concurrency to ensure that only one instance of this workflow is running at a time | ||
concurrency: | ||
group: pr-tests--${{ github.sha }} | ||
group: pr-tests-${{ github.ref_name }} | ||
cancel-in-progress: true | ||
|
||
# installs mamba-org/setup-micromamba@v1 on all 3 platforms using matrix and runs pytest: | ||
|
@@ -18,8 +16,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha || github.ref }} | ||
|
||
- uses: prefix-dev/[email protected].0 | ||
- uses: prefix-dev/[email protected].1 # https://github.com/prefix-dev/setup-pixi | ||
with: | ||
pixi-version: v0.28.2 | ||
cache: true | ||
|
@@ -37,6 +37,8 @@ jobs: | |
os: [ubuntu-latest, windows-latest, macos-13] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha || github.ref }} | ||
|
||
- uses: mamba-org/setup-micromamba@v1 # https://github.com/mamba-org/setup-micromamba | ||
with: | ||
|
@@ -54,4 +56,4 @@ jobs: | |
pip install -e . | ||
- name: Runs Tests | ||
run: pytest ./tests --ignore=./tests/fem/ --ignore=./tests/full/ --ignore=./tests/profiling/ | ||
run: pytest ./tests --ignore=./tests/fem/ --ignore=./tests/full/ --ignore=./tests/profiling/ --durations=0 |
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
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.