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 reusable workflow #484

Merged
merged 1 commit into from
Jan 17, 2022

Conversation

BeyondEvil
Copy link
Contributor

@BeyondEvil BeyondEvil commented Jan 17, 2022

GitHub Actions recently introduced reusable workflows.

I want to use that functionality to split out the different workflows to make them a little bit more focused and easier to understand.

This is a prepatory step to enable that.

@BeyondEvil BeyondEvil requested a review from a team January 17, 2022 13:26
@BeyondEvil BeyondEvil force-pushed the add-reusable-workflow branch from 04fee8c to c8d8e9d Compare January 17, 2022 13:26
- name: QUnit Tests
run: npm test

linting:
Copy link
Member

Choose a reason for hiding this comment

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

coudl thisone be migrated to precommit.ci?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

@nicoddemus nicoddemus Jan 17, 2022

Choose a reason for hiding this comment

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

https://pre-commit.ci/

We have been enabling this for many pytest plugins, including pytest itself, and are very happy with the results.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://pre-commit.ci/

We have been enabling this for many pytest plugins, including pytest itself, and are very happy with the results.

Oh, nice!

I'll follow up this PR with one to migrate it then. 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://pre-commit.ci/

We have been enabling this for many pytest plugins, including pytest itself, and are very happy with the results.

How exactly do I migrate?

According to pre-commit.ci docs - nothing is needed except the config file (which exists) and I couldn't find anything in the pytest repo to hint at how to do it either? @nicoddemus

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://pre-commit.ci/

We have been enabling this for many pytest plugins, including pytest itself, and are very happy with the results.

Ah, I think I figured it out.

Copy link
Member

Choose a reason for hiding this comment

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

You don't need to add anything to the repository, we just need to enable it in the project settings. Is that what you did?

Copy link
Member

Choose a reason for hiding this comment

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

Yes:

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You don't need to add anything to the repository, we just need to enable it in the project settings. Is that what you did?

Yep, that's what I did. :)

@BeyondEvil BeyondEvil merged commit c7c50ed into pytest-dev:master Jan 17, 2022
@BeyondEvil BeyondEvil deleted the add-reusable-workflow branch January 17, 2022 16:26
BeyondEvil added a commit that referenced this pull request Jan 26, 2022
* remove phantomjs dependency (#424)

* properly classify all npm dependencies (#425)

* Move the changelog to read the docs (#423)

* split plugin.py into smaller files (#427)

* Implement the visible URL query parameter to control visibility of test results on page load. (#433)

* enable control of test result visability via query params

* Allow for redacting of environment table values (#431)

* Disable Codecov (#480)

* Disable Codecov

* Disable pypy3 on mac

* Add Tests.yml reusable workflow (#484)

* Use the tests reusable workflow (#486)

* Migrate to precommit.ci (#487)

* Separate Nightly workflow (#488)

Co-authored-by: Gleb Nikonorov <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@ssbarnea ssbarnea added the skip-changelog Can be missed from the changelog. label Oct 27, 2022
BeyondEvil added a commit to BeyondEvil/pytest-html that referenced this pull request Apr 3, 2023
* remove phantomjs dependency (pytest-dev#424)

* properly classify all npm dependencies (pytest-dev#425)

* Move the changelog to read the docs (pytest-dev#423)

* split plugin.py into smaller files (pytest-dev#427)

* Implement the visible URL query parameter to control visibility of test results on page load. (pytest-dev#433)

* enable control of test result visability via query params

* Allow for redacting of environment table values (pytest-dev#431)

* Disable Codecov (pytest-dev#480)

* Disable Codecov

* Disable pypy3 on mac

* Add Tests.yml reusable workflow (pytest-dev#484)

* Use the tests reusable workflow (pytest-dev#486)

* Migrate to precommit.ci (pytest-dev#487)

* Separate Nightly workflow (pytest-dev#488)

Co-authored-by: Gleb Nikonorov <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Can be missed from the changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants