Added second job step with other python versions
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
name: PyTest + Coverage
|
name: PyTest (3.8) + Coverage
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main, dev ]
|
branches: [ main, dev ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pyTest:
|
pyTestCov:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Python Setup
|
- name: Python Setup
|
||||||
@@ -30,3 +30,27 @@ jobs:
|
|||||||
run: xvfb-run pytest -v --cov=nw
|
run: xvfb-run pytest -v --cov=nw
|
||||||
- name: Upload to Codecov
|
- name: Upload to Codecov
|
||||||
uses: codecov/codecov-action@v1
|
uses: codecov/codecov-action@v1
|
||||||
|
pyTest:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version: [3.5, 3.6, 3.7]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Python Setup
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
architecture: x64
|
||||||
|
- name: Install Packages
|
||||||
|
run: sudo apt install xvfb libenchant-dev qt5-default
|
||||||
|
- name: Checkout Source
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: |
|
||||||
|
pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt
|
||||||
|
pip install PyVirtualDisplay
|
||||||
|
pip install pytest-xvfb
|
||||||
|
pip install pytest-qt
|
||||||
|
- name: Run Tests
|
||||||
|
run: xvfb-run pytest -v
|
||||||
|
|||||||
Reference in New Issue
Block a user