Skip to content

Commit

Permalink
see if i can break up the workflow steps for a more enjoyable experie…
Browse files Browse the repository at this point in the history
…nce clicking through action logs
  • Loading branch information
ilaflott committed Oct 4, 2024
1 parent b26bc28 commit 2841da0
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/create_test_conda_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -26,14 +27,13 @@ jobs:
# add conda env's executables to github's PATH equiv.
echo $CONDA/envs/fre-workflows/bin >> $GITHUB_PATH
- name: Run unittest in fre-workflows environment
- name: in fre-workflows environment, cylc lint
run: |
# try to make sure the right things are in GITHUB_PATH
echo $CONDA/envs/fre-workflows/bin >> $GITHUB_PATH
# lint .cylc workflow files
cylc lint -v || echo "cylc lint threw non-zero exit code"
cylc lint -v
- name: in fre-workflows environment, data_lineage unittest and pylint
run: |
# unittests for data_lineage
cd data_lineage && \
python -m unittest discover -s test -v || \
Expand All @@ -42,6 +42,8 @@ jobs:
echo "pylint threw non-zero exit code."; \
cd -;
- name: in fre-workflows environment, regrid-xy pytest and pylint
run: |
# pytest unittests for regrid-xy
cd app/regrid-xy && \
pytest -v -v -rx --cov=regrid_xy ./t || \
Expand All @@ -50,6 +52,8 @@ jobs:
echo "pylint threw non-zero exit code."; \
cd -;
- name: in fre-workflows environment, make-timeseries pytest and pylint
run: |
# pytest unittests for make-timeseries
cd app/make-timeseries && \
pytest -v -v -rx --cov=bin/make-timeseries ./test || \
Expand All @@ -58,6 +62,8 @@ jobs:
echo "pylint threw non-zero exit code."; \
cd -;
- name: in fre-workflows environment, remap-pp-components pytest and pylint
run: |
# pytest unittests for remap-pp-components
cd app/remap-pp-components && \
pytest -v -v -rx --cov=bin/remap-pp-components ./t/ || \
Expand All @@ -66,6 +72,8 @@ jobs:
echo "pylint threw non-zero exit code."; \
cd -;
- name: in fre-workflows environment, root directory pytest
run: |
# pytest unittests for other things in this repository
pytest -v -v -rx ./tests || \
echo "pytest unittests for root directory failed :-(";

0 comments on commit 2841da0

Please sign in to comment.