Update of Ellipsoid class initialization due to pyproj library update… #211
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 version by @suvarchal | |
name: pyfesom2 extended test | |
# Controls when the action will run. Triggers the workflow on push or pull request. | |
on: | |
# Trigger the workflow on push or pull request, | |
# but only for the main branch | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
setup: | |
name: ${{matrix.os}}-py-${{matrix.python-version}} | |
runs-on: ${{ matrix.os }} #, macos-latest, windows-latest] | |
strategy: | |
#max-parallel: 1 | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
python-version: ["3.8", "3.9", "3.10"] | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
path: main | |
- name: Checkout pyfesom2 | |
uses: actions/checkout@v3 | |
with: | |
repository: FESOM/pyfesom2 | |
path: pyfesom2 | |
fetch-depth: 0 | |
- name: install conda environment | |
uses: mamba-org/provision-with-micromamba@main #/v12 | |
with: | |
environment-file: main/ci/requirements-py37.yml | |
environment-name: pyfesom2 | |
cache-env: true | |
cache-env-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}" | |
# - name: Checkout git commit log | |
# working-directory: pyfesom2 | |
# run: | | |
# git checkout suvi_test_branch_workflow | |
# git log | |
- name: Checkout xarray version | |
run: | | |
python -c "import xarray; print('xarray version:', xarray.__version__)" | |
python -c "import netCDF4; print('netcdf4 (py,c) versions:', netCDF4.__version__, netCDF4._netCDF4.__netcdf4libversion__)" | |
- name: Install pyfesom2 | |
working-directory: pyfesom2 | |
run: | | |
python -m pip install -e . | |
- name: Test pyfesom2 import | |
working-directory: pyfesom2 | |
run: | | |
python -c "import pyfesom2" | |
- name: Test pyfesom2 | |
working-directory: pyfesom2 | |
run: | | |
pytest |