forked from ivadomed/test-tk-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.29 KB
/
Copy pathmacos.yml
File metadata and controls
44 lines (37 loc) · 1.29 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
name: macOS
on:
push:
pull_request:
workflow_dispatch:
jobs:
tests:
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}, Buildout ${{ matrix.buildout-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
matrix:
os: [ 'macos-10.15', 'macos-11', 'macos-12' ]
python-version: [ '3.9', '3.10' ]
buildout-version: ['2.13.7', '3.0.0rc3']
env:
# Switches to enable compatibility with older versions of macOS.
SYSTEM_VERSION_COMPAT: 1
MACOSX_DEPLOYMENT_TARGET: 10.16
steps:
- name: Acquire sources
uses: actions/checkout@v3
- name: Install GNU getopt
run: |
brew install gnu-getopt
echo "/usr/local/opt/gnu-getopt/bin" >> $GITHUB_PATH
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup environment and run Buildout
run: |
python -m pip install --upgrade pip
pip install --upgrade wheel
pip install --upgrade --pre "zc.buildout==${{ matrix.buildout-version }}"
buildout -vv -n -c base.cfg