-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 release GitHub actions #336
Draft
klwetstone
wants to merge
28
commits into
master
Choose a base branch
from
317-ci-github
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
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
* WIP - New version with cleaner options * Fix find-replace error (#177) * Remove unnecessary .gitkeep * Remove unused tox.ini * Split reqs into dev/non-dev * Add basic packages support * Add tests for testing environment creation and requirements * Set up CI with Azure Pipelines (#194) * Change archived asciinema example (#163) * Change archived asciinema example * Update README.md Fix Asciinema powerline error * Update docs to show updated asciinema example * Added source and destination to Make data target (#169) * Fix broken Airflow link (#182) * Fixed: Typo in Makefile (#184) Fixed typo in Makefile, section "Set up python interpreter environment": intalled --> installed * Set up CI with Azure Pipelines [skip ci] * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * str paths for windows support * handle multiple data providers (#199) * Add missing env directory bin/activate path * Remove version from PYTHON_INTERPRETER command * Search for virtualenvwrapper.sh path if executable not found * Try chardet for character encoding detection * Specify python and virtualenv binaries for virtualenvwrapper * Add shebang to virtualenvwrapper.sh * Diagnostic * Try virtualenvwrapper-win * Set encoding if detected None * Fixes to Mac and Windows tests on Azure pipelines (#217) * Temporarily comment out py36 * Update azure-pipelines.yml * Fix tests on Windows and Mac (#1) * Temporarily remove py37 * Update virtualenv_harness.sh * put py37 back in * Set encoding to utf-8 * Comment out rmvirtualenv * Update test_creation.py * Update virtualenv_harness.sh * Add --show-capture * Update azure-pipelines.yml * Update azure-pipelines.yml * Update test_creation.py * Update virtualenv_harness.sh * Update virtualenv_harness.sh * Update virtualenv_harness.sh * Update virtualenv_harness.sh * Update Makefile * Update virtualenv_harness.sh * Update cookiecutter.json * Update cookiecutter.json * Update virtualenv_harness.sh * Update Makefile * Update Makefile * Update Makefile * Update virtualenv_harness.sh * Update virtualenv_harness.sh * Update virtualenv_harness.sh * Update virtualenv_harness.sh * Update virtualenv_harness.sh * Update virtualenv_harness.sh * Update virtualenv_harness.sh * Update virtualenv_harness.sh * Update Makefile * Update Makefile * Update Makefile * Update Makefile * Update virtualenv_harness.sh * Update virtualenv_harness.sh * Update virtualenv_harness.sh * Update Makefile * Update Makefile * Update virtualenv_harness.sh * Update Makefile * Update virtualenv_harness.sh * Update virtualenv_harness.sh * Update test_creation.py * Update azure-pipelines.yml * Update virtualenv_harness.sh * Update virtualenv_harness.sh * Update virtualenv_harness.sh * Update virtualenv_harness.sh * Update cookiecutter.json * Update conda_harness.sh * Update conda_harness.sh * Update conda_harness.sh Co-authored-by: Eric Jalbert <ericmjalbert@users.noreply.github.com> Co-authored-by: Jonathan Raviotta <jraviotta@users.noreply.github.com> Co-authored-by: Wes Roach <wesr000@gmail.com> Co-authored-by: Christopher Geis <16896724+geisch@users.noreply.github.com> Co-authored-by: Peter Bull <pjbull@gmail.com> Co-authored-by: Ian Preston <17241371+ianepreston@users.noreply.github.com> Co-authored-by: Jay Qi <jayqi@users.noreply.github.com> Co-authored-by: inchiosa <4316698+inchiosa@users.noreply.github.com> * More graceful deprecation * Make tests pass locally * test version match installed version * Remove unused imports * Unremove used import * Move to GH Actions * Fix typo * Test non-windows * Add netlify configs * Update suggestion to keep using deprecated cookiecutter template (#231) * Add mkdocs requirements file to docs directory * Try setting python version in runtime txt for netlify * Trigger build * Python 3.8 netlify * Python 3.6 netlify * Do not specify python runtime for netlify * Use 3.7 This reverts commit 898d7d3. Co-authored-by: James Myatt <james@jamesmyatt.co.uk> Co-authored-by: drivendata <info@drivendata.org> Co-authored-by: Eric Jalbert <ericmjalbert@users.noreply.github.com> Co-authored-by: Jonathan Raviotta <jraviotta@users.noreply.github.com> Co-authored-by: Wes Roach <wesr000@gmail.com> Co-authored-by: Christopher Geis <16896724+geisch@users.noreply.github.com> Co-authored-by: Ian Preston <17241371+ianepreston@users.noreply.github.com> Co-authored-by: Jay Qi <jayqi@users.noreply.github.com> Co-authored-by: inchiosa <4316698+inchiosa@users.noreply.github.com> Co-authored-by: Robert Gibboni <robert@drivendata.org>
* format config files * make format * update readme * no license, py version, update lint format commands * revert accidental lic removal Co-authored-by: Peter Bull <pjbull@gmail.com>
Updating the Makefile
Removing deprecation message from v2
* make gsutil rsync recursive * reformatted with black * add threaded flag for gsutil rsync
* Escape single quotes in sphinx conf. Fixes #142 * Use pyproject.toml package metadata. Fix quote escaping. Fixes #248 * Remove unnecessary pep8 configuration * Update gitignores * Use pyproject.toml for package metadata * Update README for v2 * Add Python 3.11 and 3.12 to CI * Remove unneeded requirements file reference * Docs updates * Update linting and tests * Fix lint * Missed one * Split out code quality job * Hold on 3.12 for now * Fix wrong conda environment command * Fix option name * Change back and remove python spec since it should already be in environment.yml * Change hyperlinks to https that support it * Update joblib link. Supersedes #251 * Remove Python 3.12 for now * Pin Python version in project package metadata * Use compatible release operator --------- Co-authored-by: Jay Qi <jayqi@users.noreply.github.com>
* Add windows to CI * Try different shebang per actions/runner-images#7253 (comment) * Revert "Try different shebang per actions/runner-images#7253 (comment)" This reverts commit 4a8f093. * Try setting PATH * Reduce matrix for testing * Set default shell to bash * Fix wrong syntax * Explicitly set bash path in test * Fix syntax error * Fix mistake * Try installing GNU make instead of using available mingw32-make * Undo explicit bash executable * Set conda executable * Fix black * Add conda directory to system paths * Clearer phony declaration * Add diagnostic printing * More printing * Check which make * Try adding Git bin directory to path * Explicit bash shell * Try adding explicit PATH * Try making path style consistent * Explicit conda executable * try using which * Try Scripts directory for adding to PATH * Try removing unnecessary conda stuff * Separate check step * Install from conda-forge * Missing colon * Try setup miniconda to see if it's faster * Change default shell * Use conda environment * Skip which conda * Add to path anyways * Try micromamba * Use mamba as conda executable * Fix typo * micromamba shell hook * Missing quote * Full micromamba path; add caching * Try path instead * Remove backslash * Use mambaforge instead of micromamba * Add conda to PATH * Use conda activate * Try permissions hack * Remove unneeded packages * Use different repo name per config * Cleanup * Fallbacks * Fix backwards check * Print test durations * Try conda and defaults again * Don't change shell * Normal shell * Clean up * More cleanup * More cleanup --------- Co-authored-by: Jay Qi <jayqi@users.noreply.github.com>
* Make skeleton code optional * Updates to skeleton code * make lint pass * add --profile black to isort command for black compatibility * add --profile black to generated Makefile * remove setup.py from linting/formatting; * fix code scaffold tests; revert adding isort to project makefile --------- Co-authored-by: Peter Bull <pjbull@gmail.com>
) * create alternative mkdocs docs path and add option to use sphinx, mkdocs, or none * add tests that docs folder looks correct * add author if provided to mkdocs config * fix yml typo * make mkdocs default, do not remove sphinx yet * reconfigure tests to cycle through all possible values for fields that are nominally independent * change formatting * cast docs paths to strings to satisfy shutil move in python 3.8 * remove sphinx * remove docs folder tree; make docs removal generic
jayqi
approved these changes
Dec 4, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
closes #317
Add GitHub actions to publish on release
Do not merge - #315 is needed first. After transfer, the repo should automatically have access to the PyPI secrets needed by
release.yml
ccds.__version__
Users can now see the version of
ccds
after importing (ccds.__version__
). However, the project name is different than the module name. This means that inversion.py
, we have to hard code the project name with:Instead of using:
Docs
This PR does not include versioning for docs (eg. with a "Build docs" job). That is tracked separately in #334