-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try fixing docker-test.yml in github
- Loading branch information
Joseph McKinsey
committed
Sep 16, 2022
1 parent
310e137
commit 036d15c
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,12 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ['3.10'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
token: ${{ secrets.CI_TOKEN }} | ||
- name: build docker container | ||
shell: bash | ||
run: | | ||
|
@@ -24,10 +28,25 @@ jobs: | |
mkdir outputs_build | ||
docker volume create --name gadal_output --opt type=none --opt device=$(pwd)/outputs_build --opt o=bind | ||
docker run --rm --mount source=gadal_output,target=/simulation/outputs gadal-example:0.0.0 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
- name: Run plots | ||
shell: bash -l {0} | ||
run: | | ||
pip install matplotlib pyarrow numpy matplotlib pandas | ||
eval `ssh-agent -s` | ||
ssh-add - <<< '${{ secrets.SGIDAL_CLONE_KEY }}' | ||
pip install git+ssh://[email protected]/openEDI/[email protected] | ||
python post_analysis.py outputs_build | ||
- name: Archive logs | ||
uses: actions/upload-artifact@v2 | ||
if: always() | ||
with: | ||
name: docker_logs | ||
path: | | ||
outputs_build/*.log | ||
*.png |