-
Notifications
You must be signed in to change notification settings - Fork 354
58 lines (48 loc) · 1.28 KB
/
mac-test.yml
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
56
57
58
name: macos basic tests
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
os: [macos-latest]
python-version:
- '3.10'
- '3.11'
- '3.12'
# this is needed for conda environments to activate automatically
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v1
- name: Cache conda packages
uses: actions/cache@v4
env:
# increment to reset cache
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ matrix.python-version}}-${{ env.CACHE_NUMBER }}
- name: Configure conda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test
channels: conda-forge
miniforge-version: latest
python-version: ${{ matrix.python-version }}
- name: Conda info
run: conda info --all
- name: Install tox
run: |
conda install \
pip \
setuptools \
"tox<4.0.0"
- name: Run basic pycbc test suite
run: |
tox -e py-unittest