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

use github actions instead of travis-ci #968

Merged
merged 1 commit into from
Nov 7, 2020
Merged

use github actions instead of travis-ci #968

merged 1 commit into from
Nov 7, 2020

Conversation

asottile
Copy link
Member

@asottile asottile commented Nov 5, 2020

No description provided.

@asottile
Copy link
Member Author

asottile commented Nov 5, 2020

#967 took close to 2 hours to return results, let's see if github actions can do better (and test windows too!)

@asottile
Copy link
Member Author

asottile commented Nov 5, 2020

oh hmmm, looks like actions might need to be enabled before I can try this 🤔

@asottile asottile marked this pull request as ready for review November 5, 2020 00:24
@asottile asottile marked this pull request as draft November 5, 2020 00:25
@asottile
Copy link
Member Author

asottile commented Nov 5, 2020

@IanLee1521 or @sigmavirus24 can you enable github actions on this repository?

@IanLee1521
Copy link
Member

Unless this a race condition with @sigmavirus24 and they just beat me to it; it looks like Actions are enabled (below screenshot). Maybe Travis CI has to finish running first?

image

@IanLee1521
Copy link
Member

Hmm, I'm not sure that Travis is running... maybe because this is a WIP pull request?

@sigmavirus24
Copy link
Member

Also, I think actions need to be on master for them to run

@asottile
Copy link
Member Author

asottile commented Nov 5, 2020

hmmm I've submitted PRs for actions before and they run immediately, even when I don't have commit bit -- I'll play around with this in my fork (it might be easier for me to control there?)

@asottile
Copy link
Member Author

asottile commented Nov 5, 2020

had a few mistakes but it passes now on my fork: https://github.com/asottile/pycodestyle/runs/1359541910

@sigmavirus24
Copy link
Member

hmmm I've submitted PRs for actions before and they run immediately, even when I don't have commit bit -- I'll play around with this in my fork (it might be easier for me to control there?)

That's never been my experience, frankly. I've always seen exactly this behaviour

on:
pull_request:
push:
branches: [master, 'test-me-*']
Copy link
Member

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 here

Copy link
Member Author

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

Copy link
Member

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?

Copy link
Member Author

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 twice

Copy link
Member

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.

Copy link
Member

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

Copy link
Member Author

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

Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

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

true true

Copy link
Member

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

@asottile
Copy link
Member Author

asottile commented Nov 5, 2020

hmmm I've submitted PRs for actions before and they run immediately, even when I don't have commit bit -- I'll play around with this in my fork (it might be easier for me to control there?)

That's never been my experience, frankly. I've always seen exactly this behaviour

weird, a PR worked fine for me when I was adding a wheeling job here: hynek/argon2-cffi#70

@asottile asottile marked this pull request as ready for review November 7, 2020 17:44
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.

3 participants