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

Add GitHub actions #269

Closed
wants to merge 4 commits into from
Closed

Add GitHub actions #269

wants to merge 4 commits into from

Conversation

TeresaSiegmantel
Copy link
Contributor

Github Actions have the upside of showing the results of a CI run directly in the merge request. Reviewing would become simpler.

@TeresaSiegmantel TeresaSiegmantel marked this pull request as draft July 10, 2020 07:10
Copy link
Member

@Andrew-Chen-Wang Andrew-Chen-Wang left a comment

Choose a reason for hiding this comment

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

@philipp-siegmantel Thanks for the contribution. It might be a better idea to use Travis instead of GitHub actions. Slight bias because I work with it all the time and like its UI. Additionally, it'll be easier to navigate with the Tox matrices (with the builds individualized for each TOXENV). Lots of other beautiful integrations can also go along with it.

pip install -e .[dev]
- name: Test with pytest
run: |
pytest
Copy link
Member

Choose a reason for hiding this comment

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

This should be using Tox configuration

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python application
Copy link
Member

Choose a reason for hiding this comment

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

We'll need to use a Python cache for quick installation of dependencies.

run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Test with pytest
Copy link
Member

Choose a reason for hiding this comment

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

We also need to test the Sphinx building.

pip install -e .[dev]
- name: Test with pytest
run: |
pytest
Copy link
Member

Choose a reason for hiding this comment

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

Try to also have coverage on success. That's kinda why I like Travis, the on_success part.

@Andrew-Chen-Wang
Copy link
Member

@philipp-siegmantel It seems like Dave used a Travis configuration (check out this Travis build's configuration) I'm not sure why there was change to CircleCI, but it's a little weird having to clone some of these forked repositories and manually testing. Travis or GitHub actions would work better for checking tests straight from GitHub.

Ping @johnthagen: Know when and/or why this change to CircleCI happened?

@johnthagen
Copy link
Contributor

I don't know why the change happened, I just did a couple minor edits to add support for new DRF versions after the change had already been done.

@Andrew-Chen-Wang
Copy link
Member

CircleCI now works, so this won't be necessary anymore. Thanks though!

@TeresaSiegmantel TeresaSiegmantel deleted the add-github-actions branch August 24, 2020 05:47
@Andrew-Chen-Wang
Copy link
Member

Ref #382 as this will be helpful in migrating to Jazzband's requirement for GitHub actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants