Skip to content

Commit

Permalink
actions: try mamba installing before pip installing
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-sanders committed Dec 19, 2023
1 parent 5a2cf39 commit 703d3bb
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/test_functional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Configure Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Brew Install
if: startsWith(matrix.os, 'macos')
run: |
Expand Down Expand Up @@ -134,15 +129,26 @@ jobs:
sudo apt-get update
sudo apt-get install -y sqlite3 tree at
- name: Add .github/bin/ to PATH
# Sets up mocked mail command & any other custom executables
run: echo "${{ github.workspace }}/.github/bin" >> $GITHUB_PATH
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: 'latest'
environment-file: conda-environment.yml
init-shell: bash
cache-environment: true
cache-environment-key: ${{ hashFiles('conda-environment.yml', 'setup.cfg', 'setup.py', 'pyproject.toml') }}${{ matrix.python-version }}${{ matrix.os }}
post-cleanup: 'all'
create-args: >-
python=${{ matrix.python-version }}
- name: Install
run: |
pip install -e ."[all]"
mkdir "$HOME/cylc-run"
- name: Add .github/bin/ to PATH
# Sets up mocked mail command & any other custom executables
run: echo "${{ github.workspace }}/.github/bin" >> $GITHUB_PATH

- name: Configure Atrun
if: contains(matrix.platform, '_local_at')
run: |
Expand Down

0 comments on commit 703d3bb

Please sign in to comment.