Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actions micromamba #66

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test_fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
python-version: ['3.7', '3.8', '3.10', '3.11', '3']
include:
# mac os test
- os: 'macos-latest'
- os: 'macos-13'
python-version: '3.7' # oldest supported version

# non-utc timezone test
Expand Down
26 changes: 16 additions & 10 deletions .github/workflows/test_functional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ jobs:
platform: '_remote_background_indep_tcp _remote_at_indep_tcp'
# macos
- name: 'macos 1/5'
os: 'macos-latest'
os: 'macos-13'
python-version: '3.7'
test-base: 'tests/f'
chunk: '1/5'
platform: '_local_background*'
- name: 'macos 2/5'
os: 'macos-latest'
os: 'macos-13'
python-version: '3.7'
test-base: 'tests/f'
chunk: '2/5'
Expand All @@ -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
Loading