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

Migrate to GitHub Actions #1181

Closed
wants to merge 49 commits into from
Closed

Conversation

vivekmig
Copy link
Contributor

@vivekmig vivekmig commented Sep 1, 2023

Migrates test jobs from CircleCI to Github Actions

Copy link
Member

@osalpekar osalpekar left a comment

Choose a reason for hiding this comment

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

Thanks for kicking this off. Left a small suggestion to help fix the pip jobs. Can we also deprecate the conda jobs in this PR if they are now working on GHA?

.github/workflows/test-pip-cpu.yml Show resolved Hide resolved
@osalpekar
Copy link
Member

@vivekmig Can we merge this change, and fix the remaining broken job as a follow-up? We'd like to deprecate the old CircleCI jobs ASAP

repository: pytorch/captum
script: |
sudo chmod -R 777 .
./scripts/install_via_pip.sh -n -d
Copy link
Member

Choose a reason for hiding this comment

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

For any calls to pip install within this script or any other script called from these workflows, we probably should add the following option to make the logs more readable: --progress-bar off

sudo chmod -R 777 .
./scripts/install_via_pip.sh -n -d

if [[ $CIRCLE_PROJECT_USERNAME == "pytorch" && -z $CI_PULL_REQUEST && -z $CIRCLE_PR_USERNAME ]]; then
Copy link
Member

Choose a reason for hiding this comment

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

CIRCLE_PROJECT_USERNAME does not have a set value. Any env vars without a set value with fail with unbound environment variable since we runs this shell script with set -u.

@vivekmig vivekmig changed the title WIP Example GitHub Actions Migrate to GitHub Actions Oct 21, 2023
@facebook-github-bot
Copy link
Contributor

@vivekmig has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@vivekmig merged this pull request in 5fd95a8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants