Skip to content

Annotation and docstring edits #176

Annotation and docstring edits

Annotation and docstring edits #176

Workflow file for this run

name: Unit test on push and PR
on: [push, pull_request, workflow_dispatch]
jobs:
unit-tests:
name: Run Unit Tests
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
exclude:
- os: ubuntu-latest
python-version: '3.6'
env:
OS: ${{ matrix.os }}
PYTHON-VERSION: ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: python -m pip install --upgrade pip
- uses: actions/checkout@v3
- run: python -m pip install .[test]
- run: python -m pytest ./tests/ --cov=ebmlite --cov-report=xml --flake8 -n auto
- uses: actions/upload-artifact@v3
with:
name: multi-file-stuff
path: |
./tests/SSX46714-doesnot.IDE
./tests/SSX46714-new.IDE
./tests/ssx-1.xml
./tests/ssx-2.xml
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS,PYTHON-VERSION
files: ./coverage.xml
name: ${{ matrix.os }} ${{ matrix.python-version }}
verbose: true