-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
CI and testing infrastructure improvements. #3896
base: main
Are you sure you want to change the base?
Changes from all commits
265bb77
c20d4fe
4cc2001
b890d3b
9587805
1182084
e131261
6d7b2ec
272e94a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ jobs: | |
fetch-depth: 2 | ||
|
||
- name: Install conda-lock environment with micromamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
uses: mamba-org/setup-micromamba@v2 | ||
with: | ||
environment-file: environments/conda-lock.yml | ||
environment-name: pudl-dev | ||
|
@@ -78,7 +78,7 @@ jobs: | |
fetch-depth: 2 | ||
|
||
- name: Install conda-lock environment with micromamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
uses: mamba-org/setup-micromamba@v2 | ||
with: | ||
environment-file: environments/conda-lock.yml | ||
environment-name: pudl-dev | ||
|
@@ -120,9 +120,7 @@ jobs: | |
path: .coverage | ||
|
||
ci-integration: | ||
runs-on: | ||
group: large-runner-group | ||
labels: ubuntu-latest-4core | ||
runs-on: ubuntu-latest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See this pytest action run for confirmation that the larger paid runner is no longer necessary. |
||
if: github.event_name == 'workflow_dispatch' || github.event.merge_group | ||
permissions: | ||
contents: read | ||
|
@@ -139,7 +137,7 @@ jobs: | |
fetch-depth: 2 | ||
|
||
- name: Install Conda environment using mamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
uses: mamba-org/setup-micromamba@v2 | ||
with: | ||
environment-file: environments/conda-lock.yml | ||
environment-name: pudl-dev | ||
|
@@ -224,7 +222,7 @@ jobs: | |
run: | | ||
find coverage -type f | ||
- name: Install Micromamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
uses: mamba-org/setup-micromamba@v2 | ||
with: | ||
init-shell: bash | ||
environment-name: coverage | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,10 @@ conda-lock.yml: pyproject.toml | |
.PHONY: pudl-dev | ||
pudl-dev: | ||
${mamba} run --name base ${mamba} install --quiet --yes "conda-lock>=2.5.7" | ||
${mamba} run --name base ${mamba} env remove --yes --name pudl-dev | ||
# Only attempt to remove the pudl-dev environment if it already exists. | ||
if ${mamba} env list | grep -q pudl-dev; then \ | ||
${mamba} env remove --quiet --yes --name pudl-dev; \ | ||
fi | ||
Comment on lines
-55
to
+58
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I discovered this was failing after removing my local |
||
${mamba} run --name base conda-lock install \ | ||
--name pudl-dev \ | ||
--${mamba} \ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FROM mambaorg/micromamba:1.5.9 | ||
FROM mambaorg/micromamba:1.5.10 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As of yet there's no micromamba 2.0 image, but I imagine it'll come out shortly. |
||
|
||
ENV PGDATA=${CONTAINER_HOME}/pgdata | ||
Check warning on line 3 in docker/Dockerfile GitHub Actions / Test building the PUDL ETL Docker imageVariables should be defined before their use
|
||
|
||
USER root | ||
|
||
|
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.
Configuration no longer required because we don't need to use a special large runner.