Skip to content

Test

Test #1101

Workflow file for this run

name: Test
on:
pull_request:
push:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 */72 * * *'
jobs:
build:
runs-on: ${{ matrix.os }}
environment:
name: test
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: actions/checkout@v2.5.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install codecov
python -m pip install --only-binary=all numpy scipy pandas scikit-learn nltk
python -m pip install -e ".[test]"
- name: Unit tests
run: |
python -m pytest
- name: Report coverage
run: |
python -m codecov