handle binops in liveness checker fixes #157 #1671
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: ipyflow | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ 'macos-latest', 'ubuntu-latest', 'windows-latest' ] | |
python-version: [ '3.8.x', '3.9.x', '3.10.x', '3.11.x', '3.12.x' ] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e ./core/.[dev] | |
- name: Lint with ruff | |
run: make lint | |
- name: Run type checker with mypy | |
# only run on ubuntu-latest; should be same for any OS, and | |
# mypy seems to have issues on windows 3.6.x specifically | |
# wherein it gives a false positive syntax error | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: make typecheck | |
- name: Compute coverage and run tests with pytest (excluding typing) | |
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10.x'}} | |
run: make xmlcov | |
- name: Run tests with pytest, excluding typing and coverage | |
if: ${{ ! (matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10.x') }} | |
run: make check_no_typing | |
- name: Upload coverage report | |
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10.x'}} | |
uses: codecov/codecov-action@v1 | |
with: | |
token: '${{ secrets.CODECOV_TOKEN }}' | |
files: ./coverage.xml | |
env_vars: PYTHON | |
name: codecov-umbrella | |
fail_ci_if_error: true | |
verbose: true |