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

Migrate from Travis to GitHub Actions #63

Merged
merged 4 commits into from
May 20, 2021
Merged

Migrate from Travis to GitHub Actions #63

merged 4 commits into from
May 20, 2021

Conversation

hancush
Copy link
Member

@hancush hancush commented May 19, 2021

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 the deploy branch, too.) Finally, it installs opencivicdata from the master branch to capture recent changes that have not yet been rolled into a release.

Comment on lines -27 to -33
- 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
Copy link
Member Author

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
Copy link
Member Author

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)

@hancush hancush requested a review from fgregg May 19, 2021 20:40
@hancush hancush marked this pull request as ready for review May 19, 2021 20:40
@@ -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
Copy link
Member

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?

Copy link
Member Author

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
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member Author

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.)

Copy link
Member

@fgregg fgregg left a 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.

@hancush hancush merged commit 2905aef into master May 20, 2021
@hancush hancush deleted the hcg/gh-actions branch June 18, 2021 21:57
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.

2 participants