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

Update to Python 3.12 #209

Merged
merged 7 commits into from
Nov 10, 2023
Merged

Update to Python 3.12 #209

merged 7 commits into from
Nov 10, 2023

Conversation

douglatornell
Copy link
Member

@douglatornell douglatornell commented Oct 16, 2023

  • Add Python 3.12 to GHA pytest-with-coverage workflow so that we can use the workflow to test whether all the packages SalishSeaNowcast depends on have been updated to support Python 3.12.
  • Add workflow_dispatch trigger to GHA pytest-with-coverage workflow to enable workflow to be triggered from
    GitHub CLI, browser or via API
  • Change pyproject.toml project.requires-python to >=3.12
  • Change conda environment descriptions to use Python 3.12
    • environment-dev.yaml
    • environment-fig-dev.yaml
    • environment-prod.yaml
    • environment-rtd.yaml
  • Change sphinx-linkcheck workflow to Python 3.12
  • Change pkg dev doc & README to Python 3.12 for package development

This lets us use the workflow to test whether all the packages NEMO-Cmd depends
on have been updated to support Python 3.12.
Enables workflow to be triggered from GitHub CLI, browser, or via API.

This is primarily to allow the workflow to be run via
    gh workflow run pytest-with-coverage --ref py312
during the conda-forge Python 3.12 migration to test if the environment is
solvable yet.
@douglatornell douglatornell added the maintenance Codebase maintenance label Oct 16, 2023
@douglatornell douglatornell added this to the v23.2 milestone Oct 16, 2023
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.0.6 to 2.0.7.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](urllib3/urllib3@2.0.6...2.0.7)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

Merging #209 (fbbc7b0) into main (38811df) will increase coverage by 0.00%.
Report is 3 commits behind head on main.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #209   +/-   ##
=======================================
  Coverage   77.73%   77.73%           
=======================================
  Files         133      133           
  Lines       18723    18724    +1     
  Branches     1976     1910   -66     
=======================================
+ Hits        14554    14555    +1     
  Misses       4110     4110           
  Partials       59       59           
Flag Coverage Δ
unittests 77.73% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
nowcast/figures/comparison/sandheads_winds.py 20.18% <ø> (ø)
nowcast/figures/publish/storm_surge_alerts.py 20.83% <ø> (ø)
tests/workers/test_update_forecast_datasets.py 100.00% <100.00%> (ø)

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@douglatornell douglatornell merged commit ab55391 into main Nov 10, 2023
6 checks passed
@douglatornell douglatornell deleted the py312 branch November 10, 2023 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Codebase maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant