Skip to content

Commit

Permalink
[Github Actions] install git in OSX and add environment inspection (#…
Browse files Browse the repository at this point in the history
…3581)

Co-authored-by: Manuel Schlund <32543114+schlunma@users.noreply.github.com>
  • Loading branch information
valeriupredoi and schlunma authored May 3, 2024
1 parent cf6bf35 commit 85e24b5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/run-tests-monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
run: |
mamba --version 2>&1 | tee test_linux_artifacts_python_${{ matrix.python-version }}/conda_version.txt
python -V 2>&1 | tee test_linux_artifacts_python_${{ matrix.python-version }}/python_version.txt
- name: Inspect environment
run: conda list
- name: Install pytest-monitor
run: pip install pytest-monitor
- name: Install ESMValTool
Expand Down Expand Up @@ -87,6 +89,10 @@ jobs:
run: |
mamba --version 2>&1 | tee test_osx_artifacts_python_${{ matrix.python-version }}/conda_version.txt
python -V 2>&1 | tee test_osx_artifacts_python_${{ matrix.python-version }}/python_version.txt
- name: Inspect environment
run: conda list
- name: Install git
run: mamba install -c conda-forge git
- name: Install pytest-monitor
run: pip install pytest-monitor
- name: Install ESMValTool
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
python -V 2>&1 | tee test_linux_artifacts_python_${{ matrix.python-version }}/python_version.txt
# this is how to export variables to the GITHUB var environment
echo "pver0=$(python -V)" >> $GITHUB_ENV
- name: Inspect environment
run: conda list
- name: Install ESMValTool
run: pip install -e .[develop] 2>&1 | tee test_linux_artifacts_python_${{ matrix.python-version }}/install.txt
- name: Install Julia dependencies
Expand All @@ -53,6 +55,8 @@ jobs:
echo "Python minor version changed after Julia install"
python -V
exit 1
- name: Inspect environment
run: conda list
- name: Run flake8
run: flake8
- name: Run tests
Expand Down Expand Up @@ -90,8 +94,18 @@ jobs:
run: |
mamba --version 2>&1 | tee test_osx_artifacts_python_${{ matrix.python-version }}/conda_version.txt
python -V 2>&1 | tee test_osx_artifacts_python_${{ matrix.python-version }}/python_version.txt
- name: Inspect environment
run: conda list
- name: Determine if git
run: |
which git
git --version
- name: Install git
run: mamba install -c conda-forge git
- name: Install ESMValTool
run: pip install -e .[develop] 2>&1 | tee test_osx_artifacts_python_${{ matrix.python-version }}/install.txt
- name: Inspect environment
run: conda list
- name: Run flake8
run: flake8
- name: Run tests
Expand Down

0 comments on commit 85e24b5

Please sign in to comment.