Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Conversation

@matthewfeickert
Copy link

@matthewfeickert matthewfeickert commented Oct 4, 2021

This PR starts to address Issue #1060 by adding in just the testing component in a GitHub Actions based workflow. All other workflows (linting, docs, deployment) will be added in follow up PRs in an effort to make this PR as atomic as possible. Travis CI support will be removed once all aspects of the CI/CD have been migrated to GHA.

The workflow runs the pytest tests on Ubuntu across CPython 3.6, 3.7, 3.8, 3.9 and on macOS for CPython v3.9. The workflow is activated on:

  • push events to master and tags
  • pull request events to master
  • daily CRON job scheduled for 1:23 UTC
  • on demand with workflow dispatch

To get the CI to pass an upper limit on compatible releases of scikit-learn of less than v1.0 (congrats to the scikit-learn team on finally reaching v1.0! 🎉) given incompatible API changes in the v1.0 release compared to the v0.X API.

As this PR adds testing up through CPython v3.9 it adds Python 3.9 to the supported versions in the PyPI metadata in setup.py and then adds a status badge for the CI to the README, which will look like

CI

@pep8speaks
Copy link

pep8speaks commented Oct 4, 2021

Hello @matthewfeickert! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-10-04 07:41:35 UTC

@matthewfeickert
Copy link
Author

@scikit-optimize, @betatim, @glouppe, @holgern This PR is ready for review and is passing (the CI it adds) on my fork:

passing_fork

Let me know if you have any questions. 👍

Note that GitHub Actions does support PyPy, but that's probably worth its own workflow.

Comment on lines +54 to +58
- name: Setup testing environment
run: |
mkdir tmp
cp setup.cfg tmp/
pushd tmp
Copy link
Author

@matthewfeickert matthewfeickert Oct 4, 2021

Choose a reason for hiding this comment

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

Note this can all be avoided if a src directory structure is used, but that's a whole separate Issue discussion and possible future PR.

scikit-learn v1.0 has incompatible API changes from v0.X
Run pytest tests on Ubuntu across CPython 3.6, 3.7, 3.8, 3.9 and on
macOS for CPython v3.9.

Run on:
* push events to master and tags
* pull request events to master
* daily CRON job scheduled for 1:23 UTC
* on demand with workflow dispatch
@matthewfeickert
Copy link
Author

matthewfeickert commented Oct 4, 2021

(Force pushed to resolve the flake8 complaint due to the # FIXME comment placement).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants