-
Notifications
You must be signed in to change notification settings - Fork 4
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
Update testing environment #21
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @abachma2,
Good job on this PR. I have a couple things I'd like clarification on before approving.
container: | ||
image: alpine:3.14 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've never used a container in GH actions. What's the function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's for running on a Docker image. I don't think this is actually needed here. I'll remove it if it isn't.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still curious about this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the docker image is needed. It's a standard Linux environment that is minimal in size: https://hub.docker.com/_/alpine/
on: | ||
# allows us to run workflows manually | ||
workflow_dispatch: | ||
pull_request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this will only run when a pull request is created. On subsequent pushes to that PR it will not run. Not sure if this is the behavior you want or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it will run again if you push to the branch the PR originates from:
Runs your workflow when activity on a pull request in the workflow's repository occurs.
For example, if no activity types are specified, the workflow runs when a pull request
is opened or reopened or when the head branch of the pull request is updated.
from https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May want to add a push
trigger
- name: Install dependencies | ||
run: | | ||
pip install pytest | ||
mamba env update -n openmcyclus-env -f environment.yml | ||
mamba install -y cycamore openmc scipy=1.11 pytest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This may not stay for long, as I'm noticing locally that when cyclus is installed locally it isn't able to find the archetype. I'll dig into this a bit more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I run the CI with the mamba build see run 129, I think it finds cyclus. So this build configuration will stay.
The alpine 3.14 docker container is needed to run the ``apk`` command to install the latest version of git
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @abachma2, good job on this PR. I still have a few questions I'd like answered before merging, but tentatively approving.
on: | ||
# allows us to run workflows manually | ||
workflow_dispatch: | ||
pull_request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May want to add a push
trigger
container: | ||
image: alpine:3.14 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still curious about this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought I published these comments before re-requesting a review @yardasol. My bad.
on: | ||
# allows us to run workflows manually | ||
workflow_dispatch: | ||
pull_request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it will run again if you push to the branch the PR originates from:
Runs your workflow when activity on a pull request in the workflow's repository occurs.
For example, if no activity types are specified, the workflow runs when a pull request
is opened or reopened or when the head branch of the pull request is updated.
from https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
- name: Install dependencies | ||
run: | | ||
pip install pytest | ||
mamba env update -n openmcyclus-env -f environment.yml | ||
mamba install -y cycamore openmc scipy=1.11 pytest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This may not stay for long, as I'm noticing locally that when cyclus is installed locally it isn't able to find the archetype. I'll dig into this a bit more.
container: | ||
image: alpine:3.14 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's for running on a Docker image. I don't think this is actually needed here. I'll remove it if it isn't.
Adding this function makes the tests more sustaiable, as the cross section data stored in the ANL link may change slightly with time
Is there anything else for this PR? I think the timeline got a little messy because I requested a review without actually finishing my updates/responding to comments. @yardasol |
This PR updates the testing environment with two primary parts: