Inga Ulusoy 9b3e3796fa
test on win (#33)
* test on win

* fix linter issues
2022-10-17 10:43:42 +02:00

40 строки
880 B
YAML

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-latest]
python-version: [3.9]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .
- name: Run pytest
run: |
cd misinformation
python -m pytest -s --cov=. --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
files: misinformation/coverage.xml