Skip to content

Commit 192cd81

Browse files
committed
GH Actions build test: provision python from conda-forge
1 parent 539483d commit 192cd81

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

.github/workflows/build.yml

+20-9
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,17 @@ on:
1212
- '.gitignore'
1313
- '.github/workflows/build.yml'
1414

15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
defaults:
20+
run:
21+
shell: bash -leo pipefail {0}
22+
1523
env:
1624
FORCE_COLOR: 2
25+
PIP_PROGRESS_BAR: off
1726

1827
jobs:
1928
build:
@@ -22,21 +31,23 @@ jobs:
2231
strategy:
2332
fail-fast: false
2433
matrix:
25-
os: ['ubuntu-latest']
26-
python: ['3.8', '3.9', '3']
27-
include:
28-
- os: 'ubuntu-22.04'
29-
python: '3.7'
34+
os: ['ubuntu-latest', 'macos-latest']
35+
python: ['3.7', '3.8', '3.9', '3']
36+
exclude:
3037
- os: 'macos-latest'
31-
python: '3.8'
38+
python: '3.7'
3239
steps:
3340
- name: Checkout
3441
uses: actions/checkout@v4
3542

36-
- name: Setup Python
37-
uses: actions/setup-python@v5
43+
- name: Configure Python
44+
uses: mamba-org/setup-micromamba@v2
3845
with:
39-
python-version: ${{ matrix.python }}
46+
cache-environment: true
47+
post-cleanup: 'all'
48+
environment-name: rose-build
49+
create-args: >-
50+
python=${{ matrix.python }}
4051
4152
- name: Build
4253
uses: cylc/release-actions/build-python-package@v1

.github/workflows/test.yml

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ defaults:
3838

3939
env:
4040
FORCE_COLOR: 2
41+
PIP_PROGRESS_BAR: off
4142

4243
jobs:
4344
lint:

0 commit comments

Comments
 (0)