forked from MOM6-community/sectionate
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.34 KB
/
Copy pathci.yml
File metadata and controls
55 lines (49 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
python-version: ['3.11', '3.12', '3.13', '3.14']
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.7.0
with:
access_token: ${{ github.token }}
- name: Checkout source
uses: actions/checkout@v4
with:
# `pip install -e .` resolves the version from the git tag via
# hatch-vcs; a shallow clone has no tag, so the installed package
# would report `0.1.devN` instead of the release line.
fetch-depth: 0
- name: Conda setup
uses: conda-incubator/setup-miniconda@v2
with:
channels: conda-forge
mamba-version: '*'
python-version: ${{ matrix.python-version }}
activate-environment: test_env_sectionate
auto-activate-base: false
- name: Set up conda environment
run: |
mamba env update -f ci/environment.yml
python -m pip install -e .
- name: Conda list information
run: |
conda env list
conda list
- name: Test with pytest
run: |
pytest