Skip to content

Conversation

@s-t-e-v-e-n-k
Copy link
Collaborator

To integrate better with the GitHub workflow, add a workflow for
checking pushes and PRs. This doesn't remove the Travis configuration,
which is still required for releases.

Co-Authored-By: Christian Clauss [email protected]

pull_request:
push:
jobs:
pre-commit:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
pre-commit:
check:

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- run: pip install tox pre-commit
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- run: pip install tox pre-commit
- run: pip install tox

tox already installs pre-commit.

- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- run: pip install tox pre-commit
- run: pip install -r requirements.txt -r test-requirements.txt
Copy link
Contributor

@cclauss cclauss Apr 14, 2020

Choose a reason for hiding this comment

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

It is usually safer to edit test-requirements.txt to have the first line be -r requirements.txt but this will work as well.

To integrate better with the GitHub workflow, add a workflow for
checking pushes and PRs. This doesn't remove the Travis configuration,
which is still required for releases.

Co-Authored-By: Christian Clauss <[email protected]>
@s-t-e-v-e-n-k s-t-e-v-e-n-k merged commit f1401c1 into PyGithub:master Apr 15, 2020
@s-t-e-v-e-n-k s-t-e-v-e-n-k deleted the add-gh-workflow branch October 21, 2021 04:00
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