Improve itemEditor test, and refactor actions

This commit is contained in:
Veronica K. B. Olsen
2020-10-01 20:34:48 +02:00
parent 0179965a8d
commit 26ebcd496d
13 changed files with 91 additions and 40 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ jobs:
- name: Python Setup
uses: actions/setup-python@v1
with:
python-version: 3.7
python-version: 3
architecture: x64
- name: Checkout Source
uses: actions/checkout@v2
@@ -1,4 +1,4 @@
name: python 3.6
name: Linux (3.6)
on:
push:
@@ -7,7 +7,7 @@ on:
branches: [ main, dev ]
jobs:
pyTest36:
testLinux36:
runs-on: ubuntu-latest
steps:
- name: Python Setup
@@ -18,16 +18,16 @@ jobs:
- name: Install Packages
run: |
sudo apt update
sudo apt install xvfb libenchant-dev qt5-default
sudo apt install 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-timeout
pip install pytest-xvfb
pip install pytest-qt
- name: Run Tests
run: xvfb-run pytest -v --timeout=60
run: |
export QT_QPA_PLATFORM=offscreen
pytest -v --timeout=60
@@ -1,4 +1,4 @@
name: python 3.7
name: Linux (3.7)
on:
push:
@@ -7,7 +7,7 @@ on:
branches: [ main, dev ]
jobs:
pyTest37:
testLinux37:
runs-on: ubuntu-latest
steps:
- name: Python Setup
@@ -18,16 +18,16 @@ jobs:
- name: Install Packages
run: |
sudo apt update
sudo apt install xvfb libenchant-dev qt5-default
sudo apt install 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-timeout
pip install pytest-xvfb
pip install pytest-qt
- name: Run Tests
run: xvfb-run pytest -v --timeout=60
run: |
export QT_QPA_PLATFORM=offscreen
pytest -v --timeout=60
@@ -1,4 +1,4 @@
name: python 3.8
name: Linux (3.8)
on:
push:
@@ -7,7 +7,7 @@ on:
branches: [ main, dev ]
jobs:
pyTest38Cov:
testLinux38:
runs-on: ubuntu-latest
steps:
- name: Python Setup
@@ -18,20 +18,20 @@ jobs:
- name: Install Packages
run: |
sudo apt update
sudo apt install xvfb libenchant-dev qt5-default
sudo apt install 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-timeout
pip install pytest-cov
pip install pytest-xvfb
pip install pytest-qt
pip install codecov
- name: Run Tests
run: xvfb-run pytest -v --cov=nw --timeout=60
run: |
export QT_QPA_PLATFORM=offscreen
pytest -v --timeout=60
- name: Upload to Codecov
uses: codecov/codecov-action@v1
@@ -7,7 +7,7 @@ on:
branches: [ main, dev ]
jobs:
pyTestMac38:
testMac38:
runs-on: macos-latest
steps:
- name: Python Setup
@@ -25,8 +25,12 @@ jobs:
pip install --upgrade pip
pip install -r requirements.txt
pip install pytest-timeout
pip install pytest-cov
pip install pytest-qt
pip install codecov
- name: Run Tests
run: |
export QT_QPA_PLATFORM=offscreen
pytest -v --timeout=60
- name: Upload to Codecov
uses: codecov/codecov-action@v1
+32
View File
@@ -0,0 +1,32 @@
name: Windows (3.8)
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
jobs:
testWin38:
runs-on: windows-latest
steps:
- name: Python Setup
uses: actions/setup-python@v1
with:
python-version: 3.8
architecture: x64
- name: Checkout Source
uses: actions/checkout@v2
- name: Install Dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install pytest-timeout
pip install pytest-cov
pip install pytest-qt
pip install codecov
- name: Run Tests
run: |
pytest -v --timeout=60
- name: Upload to Codecov
uses: codecov/codecov-action@v1