From 2a60c8bd80ea4e77048129f52c4916b8a86265cc Mon Sep 17 00:00:00 2001 From: tsutterley Date: Thu, 17 Aug 2023 14:38:42 -0700 Subject: [PATCH] ci: try build with mamba --- .github/workflows/auto-update-bulletin-a.yml | 18 +++++++++++------- .github/workflows/auto-update-files.yml | 18 +++++++++++------- .github/workflows/python-request.yml | 18 +++++++++++------- 3 files changed, 33 insertions(+), 21 deletions(-) diff --git a/.github/workflows/auto-update-bulletin-a.yml b/.github/workflows/auto-update-bulletin-a.yml index 7827137b..ce10c5d5 100644 --- a/.github/workflows/auto-update-bulletin-a.yml +++ b/.github/workflows/auto-update-bulletin-a.yml @@ -25,16 +25,20 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up conda ${{ matrix.python-version }} - uses: conda-incubator/setup-miniconda@v2 + - name: Set up mamba ${{ matrix.python-version }} + uses: mamba-org/setup-micromamba@v1 with: - auto-update-conda: true - python-version: ${{ matrix.python-version }} - activate-environment: pyTMD + micromamba-version: '1.3.1-0' environment-file: environment.yml - - name: Create conda Test Environment + init-shell: bash + environment-name: pyTMD + cache-environment: true + post-cleanup: 'all' + create-args: >- + python=${{ matrix.python-version }} + - name: Create mamba Test Environment run: | - conda install flake8 pytest pytest-cov cython + mamba install flake8 pytest pytest-cov cython - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names diff --git a/.github/workflows/auto-update-files.yml b/.github/workflows/auto-update-files.yml index bd9e5ae9..078bdc8c 100644 --- a/.github/workflows/auto-update-files.yml +++ b/.github/workflows/auto-update-files.yml @@ -25,16 +25,20 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up conda ${{ matrix.python-version }} - uses: conda-incubator/setup-miniconda@v2 + - name: Set up mamba ${{ matrix.python-version }} + uses: mamba-org/setup-micromamba@v1 with: - auto-update-conda: true - python-version: ${{ matrix.python-version }} - activate-environment: pyTMD + micromamba-version: '1.3.1-0' environment-file: environment.yml - - name: Create conda Test Environment + init-shell: bash + environment-name: pyTMD + cache-environment: true + post-cleanup: 'all' + create-args: >- + python=${{ matrix.python-version }} + - name: Create mamba Test Environment run: | - conda install flake8 pytest pytest-cov cython + mamba install flake8 pytest pytest-cov cython - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names diff --git a/.github/workflows/python-request.yml b/.github/workflows/python-request.yml index e9cbd34d..26def25b 100644 --- a/.github/workflows/python-request.yml +++ b/.github/workflows/python-request.yml @@ -26,16 +26,20 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up conda ${{ matrix.python-version }} - uses: conda-incubator/setup-miniconda@v2 + - name: Set up mamba ${{ matrix.python-version }} + uses: mamba-org/setup-micromamba@v1 with: - auto-update-conda: true - python-version: ${{ matrix.python-version }} - activate-environment: pyTMD + micromamba-version: '1.3.1-0' environment-file: environment.yml - - name: Create conda Test Environment + init-shell: bash + environment-name: pyTMD + cache-environment: true + post-cleanup: 'all' + create-args: >- + python=${{ matrix.python-version }} + - name: Create mamba Test Environment run: | - conda install openblas-devel flake8 pytest pytest-cov cython jplephem octave oct2py + mamba install openblas-devel flake8 pytest pytest-cov cython jplephem octave oct2py - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names