Skip to content

adding --check-contrib to repo workflow#595

Draft
c-gr34sl3y wants to merge 13 commits intomainfrom
ci-check-contrib
Draft

adding --check-contrib to repo workflow#595
c-gr34sl3y wants to merge 13 commits intomainfrom
ci-check-contrib

Conversation

@c-gr34sl3y
Copy link
Contributor

the idea is to get eb --check-contrib to run on new PRs and push actions to the repo.

This is a rough draft. Some things to work on and test more:

  • Are PRs and pushes the correct gh action to apply this to?
  • Does this capture the right depth of commit history
  • Is this the correct behaviour we want from the CI?

@@ -0,0 +1,83 @@
name: check-contrib

on: [push, pull_request] # would you need to define PRs containing .eb files?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since the workflow is triggered on all push and pull request events, should I add a conditional to only run the check-contrib step if .eb files are modified?

e.g. if: contains(github.event.pull_request.changed_files, '.eb')

pip install easybuild==4.9.4 pycodestyle

echo "Installing LMOD"
sudo apt-get install -y lua5.2 liblua5.2-dev lua-filesystem lua-posix tcl tcl-dev
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This install section is a bit messy. It can be tidied up. Add neater lines to a variable and then

$APT_APPS_INSTALL _LIST= lua5.2 liblua5.2-dev lua-filesystem lua-posix tcl tcl-dev curl
sudo apt-get install -y $APT_APPS_INSTALL_LIST

- name: Upgrade pip
run: python -m pip install --upgrade pip

- name: Install EasyBuild and required deps
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add caching for Python dependencies using actions/cache@v3 to speed up subsequent runs.

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.

1 participant