-
Notifications
You must be signed in to change notification settings - Fork 749
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
use github actions instead of travis-ci #968
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: main | ||
on: | ||
pull_request: | ||
push: | ||
branches: [master, 'test-me-*'] | ||
tags: ['*'] | ||
|
||
jobs: | ||
main: | ||
strategy: | ||
matrix: | ||
include: | ||
- os: windows-latest | ||
py: 2.7 | ||
toxenv: py | ||
- os: windows-latest | ||
py: 3.9 | ||
toxenv: py | ||
- os: ubuntu-latest | ||
py: pypy2 | ||
toxenv: py | ||
- os: ubuntu-latest | ||
py: pypy3 | ||
toxenv: py | ||
- os: ubuntu-latest | ||
py: 2.7 | ||
toxenv: py | ||
- os: ubuntu-latest | ||
py: 3.4 | ||
toxenv: py | ||
- os: ubuntu-latest | ||
py: 3.5 | ||
toxenv: py | ||
- os: ubuntu-latest | ||
py: 3.6 | ||
toxenv: py | ||
- os: ubuntu-latest | ||
py: 3.7 | ||
toxenv: py | ||
- os: ubuntu-latest | ||
py: 3.8 | ||
toxenv: py | ||
- os: ubuntu-latest | ||
py: 3.9 | ||
toxenv: py | ||
- os: ubuntu-latest | ||
py: 3.9 | ||
toxenv: flake8 | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.py }} | ||
- run: pip install tox | ||
- run: tox -e ${{ matrix.toxenv }} |
This file was deleted.
Oops, something went wrong.
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
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.
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.
Probably don't want to keep
'test-me-*
in hereThere 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.
oh, I usually find this useful to debug CI without having to open a PR
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.
Stupid question: If you can push to a repo and you trust others who can push to the repo, why bother restricting this at all?
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.
it's mostly so when pushing branches pushed to
pycqa/pycodestyle
and creating a pull request based on them you don't run the actions twiceThere 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.
🤷 You're still running them twice, just once on a random push, and a second time when opening the PR. They're just separate.
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.
🤷 I don't personally see any problems with running tests that often. But also CI systems never actually test against a merged build, just against the head of the branch so they're usually trash either way
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.
GA tests against the merged revision
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.
It doesn't update when master moves forward in my testing though so it's a point-in-time merged revision, not one before you press merge
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.
true true
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.
Not an argument against GA just a general gripe