Update tests to use pytest
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
name: Tests
|
||||
|
||||
on: [push, pull_request]
|
||||
on: [ push, pull_request ]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
@@ -9,13 +9,17 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
py_version: ["3.7", "3.8", "3.9", "3.10"]
|
||||
py_version: [ "3.7", "3.8", "3.9", "3.10" ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Set up Python ${{ matrix.py_version }}
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: ${{ matrix.py_version }}
|
||||
- name: Run tests
|
||||
run: python setup.py test
|
||||
- uses: actions/checkout@v1
|
||||
- name: Set up Python ${{ matrix.py_version }}
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: ${{ matrix.py_version }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
- name: Run tests
|
||||
run: pytest --cov=pydiscourse
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
pytest==6.2.5
|
||||
pytest-cov==3.0.0
|
||||
Reference in New Issue
Block a user