Skip to content

Conversation

@rlinehan
Copy link
Contributor

@rlinehan rlinehan commented Jan 13, 2022

Closes #19

Group workflows by action that needs to happen (run tests, build and release package), rather than by what event is the trigger. This allows for something like running tests to happen on both pushes to main and on pull requests.

This removes the pull_request.yml file, since it should no longer be needed, and renames push_request.yml to cd.yml.

Group workflows by action that needs to happen (run tests, build and release package), rather than by what event is the trigger. This allows for something like running tests to happen on both pushes to main and on pull requests.

This removes the pull_request.yml file, since it should no longer be needed, and renames push_request.yml to cd.yml.
python -m pip install --upgrade pip
pip install setuptools wheel build

- name: Build package
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think this is needed, since we're already building the package in both of the other workflows?

- name: Build package
run: python -m pip install -e .

and

But it's possible I'm missing something?

Copy link
Contributor

Choose a reason for hiding this comment

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

Are you saying that we don't need to build the code in ci.yaml and cd.yaml, or in this pr_request.yml?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah sorry that wasn't clear - AFAICT all pull_request.yml was doing was building the package, and ci.yml and cd.yml already both do that, so I think it's ok to delete this file.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 I agree if we have ci.yml we def don't need pull_request.yml

@rlinehan rlinehan marked this pull request as ready for review January 13, 2022 18:49
Copy link
Contributor

@bruuuuuuuce bruuuuuuuce left a comment

Choose a reason for hiding this comment

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

:shipit:

@rlinehan rlinehan merged commit 9497ac9 into main Jan 13, 2022
@rlinehan rlinehan deleted the rlinehan/reorganize-actions-workflows branch January 13, 2022 21:20
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.

Refactor Actions workflows

3 participants