Skip to content

macOS Python is weird... #37

macOS Python is weird...

macOS Python is weird... #37

Workflow file for this run

name: Build & Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
include:
- os: windows-latest
python-version: '3.12'
- os: macos-latest
python-version: '3.12'
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set CPPFLAGS/LDFLAGS for OpenSSL on macOS
if: matrix.os == 'macos-latest'
run: |
brew install openssl@3
echo "CPPFLAGS=-I/usr/local/opt/openssl@3/include" >> $GITHUB_ENV
echo "LDFLAGS=-L/Library/Frameworks/Python.framework/Versions/3.12/lib" >> $GITHUB_ENV
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
- name: Install
run: |
pip install -e .[dev]
- name: Lint with flake8
if: ${{ matrix.python-version != '3.7' }}
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --statistics
- name: Test with pytest
run: |
pytest -v