-
Notifications
You must be signed in to change notification settings - Fork 8
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
Migrate from Travis to GitHub Actions #63
Conversation
- curl -sL https://sentry.io/get-cli/ | bash | ||
- export SENTRY_ORG=datamade | ||
export SENTRY_PROJECT=ocd-scrapers | ||
- VERSION=$(sentry-cli releases propose-version) | ||
- sentry-cli releases new $VERSION | ||
- sentry-cli releases set-commits $VERSION --commit opencivicdata/scrapers-us-municipal@`git rev-parse HEAD` | ||
- sentry-cli releases finalize $VERSION |
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.
This has been failing for a while, i.e., has no effect. I decided not to replicate it in the GitHub Action.
python-version: '3.5' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools |
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.
Upgrading setuptools
resolved the build error we've been seeing in Travis. Reference: django-haystack/django-haystack#1571 (comment)
@@ -1,5 +1,6 @@ | |||
django>=2.2,<2.3 | |||
opencivicdata>=3.1.0 | |||
# Better handling for loading divisions from specified CSV | |||
https://github.com/opencivicdata/python-opencivicdata/archive/master.zip |
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.
do we want to peg this to a specific version, or have it float like this?
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.
Great question. I opened #64 and once I finish up datamade/how-to#210, let us pin!
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.5 |
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.
do we want to bump our python version 3.5 is now EOL. This is probably a separate issue.
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.
Another a great question. Opened #65.
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.
(My answer is not yet because the OCD scrapers on the server are still using Python 3.5.)
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.
Approve the PR. Raised a couple issues that are tangential.
Description
This PR migrates from Travis to GitHub Actions and resolves a new build error that began plaguing us earlier this month. It also updates the deployment documentation to conform to the pattern of production deployments from the
deploy
branch. (N.b., I have updated the automated build config in Docker Hub to build the production tag from thedeploy
branch, too.) Finally, it installsopencivicdata
from themaster
branch to capture recent changes that have not yet been rolled into a release.