-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (43 loc) · 1.2 KB
/
conda.yaml
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
on:
# run on all pushes to any branch
push:
paths:
# Only run on changes to source or test python files and environment.yml
- "fractopo/**.py"
- "tests/**.py"
- ".github/workflows/**.yaml"
- "pyproject.toml"
- "environment.yaml"
jobs:
conda-environment-install:
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
platform: ["ubuntu-latest", "macos-latest", "windows-latest"]
runs-on: ${{ matrix.platform }}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v2
with:
micromamba-version: "1.3.1-0"
environment-file: environment.yaml
init-shell: >-
bash
powershell
cache-environment: true
post-cleanup: "all"
create-args: >-
python=${{ matrix.python-version }}
- name: Run unit tests
run: |
# Test package import
python -c 'import fractopo'
# Test module entrypoint
python -m fractopo --help
# Run unittests with pytest
pytest -v