Skip to content
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

[Github Actions ] Check if python minor version changed after Julia install in development installation test #3213

Merged
merged 14 commits into from
Jun 8, 2023
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,24 @@ 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
# this is how to export variables to the GITHUB var environment
echo "pver0=$(python -V)" >> $GITHUB_ENV
- name: Install ESMValTool
shell: bash -l {0}
run: pip install -e .[develop] 2>&1 | tee test_linux_artifacts_python_${{ matrix.python-version }}/install.txt
- name: Install Julia dependencies
shell: bash -l {0}
run: esmvaltool install Julia
- name: Export Python minor version
shell: bash -l {0}
run: echo "pver1=$(python -V)" >> $GITHUB_ENV
- name: Exit if Python minor version changed
shell: bash -l {0}
if: ${{ env.pver1 != env.pver0}}
run: |
echo "Python minor version changed after Julia install"
python -V
exit 1
- name: Run flake8
shell: bash -l {0}
run: flake8
Expand Down