Skip to content
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

Add macOS M1 runner testing configuration for PRs and scheduled tests #3791

Merged
merged 6 commits into from
Feb 1, 2024

Conversation

agriyakhetarpal
Copy link
Member

@agriyakhetarpal agriyakhetarpal commented Jan 31, 2024

Description

This PR configures the workflows to include tests for the new GitHub Actions M1 runners.

Type of change

Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.

  • New feature (non-breaking change which adds functionality)
  • Optimization (back-end change that speeds up the code)
  • Bug fix (non-breaking change which fixes an issue)

Key checklist:

  • No style issues: $ pre-commit run (or $ nox -s pre-commit) (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)
  • All tests pass: $ python run-tests.py --all (or $ nox -s tests)
  • The documentation builds: $ python run-tests.py --doctest (or $ nox -s doctests)

You can run integration tests, unit tests, and doctests together at once, using $ python run-tests.py --quick (or $ nox -s quick).

Further checks:

  • Code is commented, particularly in hard-to-understand areas
  • Tests added that prove fix is effective or that feature works

@agriyakhetarpal
Copy link
Member Author

Python 3.8 and Python 3.9 are not yet available in the version manifest, I had flagged this earlier today at actions/setup-python#808

@agriyakhetarpal agriyakhetarpal changed the title Add macOS M1 runner testing configuration for PR and scheduled tests Add macOS M1 runner testing configuration for PRs and scheduled tests Jan 31, 2024
Copy link

codecov bot commented Jan 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (063a383) 99.59% compared to head (9e419a3) 99.59%.
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3791   +/-   ##
========================================
  Coverage    99.59%   99.59%           
========================================
  Files          257      257           
  Lines        20802    20802           
========================================
  Hits         20718    20718           
  Misses          84       84           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

.github/workflows/run_periodic_tests.yml Outdated Show resolved Hide resolved
.github/workflows/test_on_push.yml Outdated Show resolved Hide resolved
agriyakhetarpal and others added 2 commits February 1, 2024 07:23
Co-authored-by: Eric G. Kratz <kratman@users.noreply.github.com>
.github/workflows/run_periodic_tests.yml Outdated Show resolved Hide resolved
.github/workflows/test_on_push.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@kratman kratman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine as long as the new tests pass

@agriyakhetarpal
Copy link
Member Author

Looks like they did, feel free to approve and merge

@kratman kratman merged commit 705baff into develop Feb 1, 2024
45 of 47 checks passed
@kratman kratman deleted the test-pybamm-with-m1-runner branch February 1, 2024 02:43
js1tr3 pushed a commit to js1tr3/PyBaMM that referenced this pull request Aug 12, 2024
…pybamm-team#3791)

* Add macOS M1 runner configuration for PR and scheduled tests

See pybamm-team#3789, pybamm-team#3462

* Add `macos-14` to test conditions

* Exclude Python 3.8 and 3.9 for now from testing

* Apply suggestions from code review

Co-authored-by: Eric G. Kratz <kratman@users.noreply.github.com>

* Remove some missed comments

---------

Co-authored-by: Eric G. Kratz <kratman@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants