update SP to recent version #89
This file contains hidden or 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
| name: "Build environment" | |
| on: | |
| workflow_dispatch: | |
| release: | |
| types: [created] | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build_env: | |
| name: "Build ${{ matrix.os }}" | |
| strategy: | |
| fail-fast: False | |
| matrix: | |
| # When adding alternative OS, we also need an alternative for the installation of miniforge | |
| os: ["ubuntu-latest"] | |
| runs-on: "${{ matrix.os }}" | |
| defaults: | |
| run: | |
| # This is needed otherwise we can't activate the conda installation | |
| shell: bash -l {0} | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| # At 2025-05 a new token was added in the gitgub-action secrets. This token will expire ~05-2026. | |
| # When that happens, generate a new one following the documentation: | |
| # https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens | |
| # More specifically: | |
| # - go to https://github.com/settings/personal-access-tokens | |
| # - create a (fine-grained) token for ECA-D/eobs | |
| # - the fine grained token should have "Read access to metadata" and "Read and Write access to code" | |
| - name: checkout eobs repository | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: ECA-D/eobs | |
| token: ${{ secrets.DEVELOPMENT_SECRET_TOKEN }} | |
| path: eobs | |
| ref: master | |
| fetch-depth: 0 | |
| - uses: conda-incubator/setup-miniconda@v3 | |
| if: matrix.os == 'ubuntu-latest' | |
| with: | |
| installer-url: https://github.com/conda-forge/miniforge/releases/download/25.3.0-3/Miniforge3-Linux-x86_64.sh | |
| python-version: "3.11" | |
| allow-softlinks: true | |
| show-channel-urls: true | |
| auto-update-conda: true | |
| - name: Move eobs | |
| run: mv eobs ../eobs | |
| - name: install conda dependencies | |
| run: bash install_step0_conda.sh | |
| - name: install R dependencies | |
| run: bash install_step1_R.sh | |
| - name: run_test | |
| run: bash run_minimal_test.sh | |
| - name: List full installation of the conda environment | |
| run: conda list -e | |
| - name: "completed" | |
| run: echo 'All complete, successful' |