-
Notifications
You must be signed in to change notification settings - Fork 35
Add workflow to test PyBaMM develop branch nightly #291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
BradyPlanden
merged 14 commits into
develop
from
290-test-nightly-against-pybamm-develop
Apr 18, 2024
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
03b833f
Add nightly pybamm@develop workflow
BradyPlanden 11aeef4
update CI name
BradyPlanden d9f133c
Updt for pip management, udpt CI names
BradyPlanden c239514
nightly_dependency_tests.yaml nox -> pytest
BradyPlanden 66b6e5d
bugfix pybamm uninstall
BradyPlanden 7c1bd0a
add dev optional pybop install
BradyPlanden cfca062
split tests, update pytest call for windows
BradyPlanden 9f20994
add continuation on fail
BradyPlanden 072ac2a
Updt to scheduled trigger
BradyPlanden 573f435
Update .github/workflows/nightly_dependency_tests.yaml
BradyPlanden 4366f8c
Apply suggestions from code review
BradyPlanden cefba15
Update deployment versions / OS, change to weekly on Monday, remove p…
BradyPlanden 5a7cbc4
Apply suggestions from code review
BradyPlanden 37f00e4
updt workflow name
BradyPlanden File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,48 @@ | ||
name: Nightly dependencies at develop | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 23 * * 1" | ||
|
||
concurrency: | ||
# github.workflow: name of the workflow, so that we don't cancel other workflows | ||
# github.run_id || github.event_name: either the unique identifier for the job or the event that triggered it | ||
group: ${{ github.workflow }}-${{ github.run_id || github.event_name }} | ||
# Cancel in-progress runs when a new workflow with the same group name is triggered | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
nightly_tests: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-14] | ||
python-version: ["3.12"] | ||
suite: ["unit", "integration", "examples"] | ||
|
||
name: Test-${{ matrix.os }}-py-${{ matrix.python-version }}-${{ matrix.suite }}) | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -e .[all,dev] | ||
python -m pip uninstall -y pybamm | ||
python -m pip install "pybamm[all] @ git+https://github.com/pybamm-team/PyBaMM@develop" | ||
|
||
|
||
- name: Run ${{ matrix.suite }} tests | ||
run: | | ||
if [ ${{ matrix.suite }} == "unit"]; then | ||
python -m pytest --unit | ||
elif [ ${{ matrix.suite }} == "integration"]; then | ||
python -m pytest --integration | ||
elif [ ${{ matrix.suite }} == "examples"]; then | ||
python -m pytest --nbmake --examples | ||
fi |
This file contains hidden or 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,4 +1,4 @@ | ||
name: PyBOP | ||
name: Pull Request | ||
|
||
on: | ||
workflow_dispatch: | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.