Merge ae0da89217 into a7aabeaf49
This commit is contained in:
commit
83239ed746
|
|
@ -0,0 +1,25 @@
|
|||
name: test
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
max-parallel: 4
|
||||
matrix:
|
||||
python-version: [2.7, 3.7]
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
- name: Test
|
||||
run: pytest -v -n auto --cov=my_first_calculator --cov-fail-under 69 tests.py
|
||||
|
|
@ -45,3 +45,11 @@ $RECYCLE.BIN/
|
|||
Network Trash Folder
|
||||
Temporary Items
|
||||
.apdisk
|
||||
|
||||
# Coverage
|
||||
.coverage
|
||||
htmlcov
|
||||
|
||||
# Environment
|
||||
.venv
|
||||
.env
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
pytest
|
||||
pytest-cov
|
||||
pytest-xdist
|
||||
Loading…
Reference in New Issue