Skip to content

Make notebook support and dependencies optional #52

Make notebook support and dependencies optional

Make notebook support and dependencies optional #52

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
pre-commit:
runs-on: ubuntu-latest
name: Check SDist
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: pre-commit/action@v3.0.0
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "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 }}
allow-prereleases: true
- name: Install removestar (lite)
run: |
python -m pip install -e ".[dev]"
- name: Test removestar (lite)
run: |
pytest --cov=removestar . -vv
- name: Install removestar (nb)
run: |
python -m pip install -e ".[dev,nb]"
- name: Test removestar (nb)
run: |
pytest --cov=removestar . -vv
- name: Upload coverage report
uses: codecov/codecov-action@v3.1.4