From 5a4bcc523f557ff0c821f92a36192bf30a2a5207 Mon Sep 17 00:00:00 2001 From: Zeitsperre <10819524+Zeitsperre@users.noreply.github.com> Date: Tue, 31 Jan 2023 14:34:56 -0500 Subject: [PATCH] mamba-org/provision-with-micromamba@main, latest ubuntu image --- .github/workflows/main.yml | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d60906a9..f792238b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ on: jobs: black: name: Code linting - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Cancel previous runs uses: styfle/cancel-workflow-action@0.11.0 @@ -29,7 +29,7 @@ jobs: pip: name: Pip with Python${{ matrix.python-version }} needs: black - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest strategy: matrix: include: @@ -64,35 +64,34 @@ jobs: conda: name: Conda needs: black - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest + defaults: + run: + shell: bash -l {0} steps: - uses: actions/checkout@v3 - - name: Setup miniconda with mamba - uses: conda-incubator/setup-miniconda@v2 + - name: Setup Conda (Micromamba) with Python3.9 + uses: mamba-org/provision-with-micromamba@main with: - python-version: "3.9" - miniforge-variant: Mambaforge - channels: conda-forge,defaults - channel-priority: true - activate-environment: ravenpy-env + cache-downloads: true environment-file: environment.yml - - name: Conda and mamba versions + extra-specs: | + mamba + python="3.9" + - name: Conda and Mamba versions run: | + conda --version mamba --version - name: Install RavenPy - shell: bash -l {0} run: | pip install -e ".[dev]" - name: List installed packages - shell: bash -l {0} run: | conda list - name: Test RavenPy - shell: bash -l {0} run: | pytest --cov ravenpy - name: Report coverage - shell: bash -l {0} run: coveralls --service=github env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -103,7 +102,7 @@ jobs: needs: - pip - conda - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest container: python:3-slim steps: - name: Coveralls Finished