-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (36 loc) · 1022 Bytes
/
test-osx.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
name: Test OSX
on:
push:
branches: [ develop, master ]
pull_request:
branches: [ develop, master ]
jobs:
build:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v4
- name: setup
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: prerequisites
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest pytest-asyncio mock flake8 pyyaml codecov pytest-cov
- name: lint
run: |
flake8 src/faber tests
- name: test
run: |
export PYTHONPATH=`pwd`/src
export PATH=`brew --prefix llvm`/bin:$PATH
python -m faber.cli --info=tools cxx
python -m faber.cli --srcdir=examples/python --builddir=examples/python --debug
pytest --cov=./src --debug --compiler=native -vs
- name: coverage
run: |
codecov