Upgrade CI build platforms. #71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
pytest --cov=./src --debug --compiler=native -vs | |
- name: coverage | |
run: | | |
codecov |