-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
214 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,178 @@ | ||
name: Tests | ||
|
||
on: | ||
# This avoids having duplicate builds for a pull request | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
smoke: | ||
name: Linux smoke test Py${{ matrix.PYTHON_VERSION }} | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: True | ||
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} | ||
QT_DEBUG_PLUGINS: 1 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
PYTHON_VERSION: ['2.7', '3.5', '3.8'] | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v1 | ||
- name: Install Conda | ||
uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
activate-environment: test | ||
python-version: ${{ matrix.PYTHON_VERSION }} | ||
- name: Install Dependencies | ||
shell: bash -l {0} | ||
run: pip install -r requirements/install.txt | ||
- name: Install Test Dependencies | ||
shell: bash -l {0} | ||
run: pip install -r requirements/dev.txt | ||
- name: Install Package | ||
shell: bash -l {0} | ||
run: python setup.py develop | ||
- name: Show Environment | ||
shell: bash -l {0} | ||
run: | | ||
conda info | ||
conda list | ||
- name: Format | ||
if: matrix.PYTHON_VERSION == '2.7' | ||
shell: bash -l {0} | ||
run: python run_checks_and_format.py | ||
- name: Run tests | ||
shell: bash -l {0} | ||
run: xvfb-run --auto-servernum pytest tests --cov=qtsass --cov-report=term-missing -x -vv | ||
- name: Upload coverage to Codecov | ||
shell: bash -l {0} | ||
run: codecov -t 74b56e56-6c81-4b43-b830-c46638da84a7 | ||
|
||
linux: | ||
name: Linux Py${{ matrix.PYTHON_VERSION }} | ||
needs: smoke | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: True | ||
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} | ||
QT_DEBUG_PLUGINS: 1 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
PYTHON_VERSION: ['3.6', '3.7'] | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v1 | ||
- name: Install Conda | ||
uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
activate-environment: test | ||
python-version: ${{ matrix.PYTHON_VERSION }} | ||
- name: Install Dependencies | ||
shell: bash -l {0} | ||
run: pip install -r requirements/install.txt | ||
- name: Install Test Dependencies | ||
shell: bash -l {0} | ||
run: pip install -r requirements/dev.txt | ||
- name: Install Package | ||
shell: bash -l {0} | ||
run: python setup.py develop | ||
- name: Show Environment | ||
shell: bash -l {0} | ||
run: | | ||
conda info | ||
conda list | ||
- name: Run tests | ||
shell: bash -l {0} | ||
run: xvfb-run --auto-servernum pytest tests --cov=qtsass --cov-report=term-missing -x -vv | ||
- name: Upload coverage to Codecov | ||
shell: bash -l {0} | ||
run: codecov -t 74b56e56-6c81-4b43-b830-c46638da84a7 | ||
|
||
macos: | ||
name: Mac Py${{ matrix.PYTHON_VERSION }} | ||
needs: smoke | ||
runs-on: macos-latest | ||
env: | ||
CI: True | ||
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} | ||
QT_DEBUG_PLUGINS: 1 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
PYTHON_VERSION: ['2.7', '3.5', '3.6', '3.7', '3.8'] | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v1 | ||
- name: Install Conda | ||
uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
activate-environment: test | ||
python-version: ${{ matrix.PYTHON_VERSION }} | ||
- name: Install Dependencies | ||
shell: bash -l {0} | ||
run: pip install -r requirements/install.txt | ||
- name: Install Test Dependencies | ||
shell: bash -l {0} | ||
run: pip install -r requirements/dev.txt | ||
- name: Install Package | ||
shell: bash -l {0} | ||
run: python setup.py develop | ||
- name: Show Environment | ||
shell: bash -l {0} | ||
run: | | ||
conda info | ||
conda list | ||
- name: Run tests | ||
shell: bash -l {0} | ||
run: pytest tests --cov=qtsass --cov-report=term-missing -x -vv | ||
- name: Upload coverage to Codecov | ||
shell: bash -l {0} | ||
run: codecov -t 74b56e56-6c81-4b43-b830-c46638da84a7 | ||
|
||
windows: | ||
name: Windows Py${{ matrix.PYTHON_VERSION }} | ||
needs: smoke | ||
runs-on: windows-latest | ||
env: | ||
CI: True | ||
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} | ||
QT_DEBUG_PLUGINS: 1 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
PYTHON_VERSION: ['2.7', '3.5', '3.6', '3.7', '3.8'] | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v1 | ||
- name: Install Conda | ||
uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
activate-environment: test | ||
python-version: ${{ matrix.PYTHON_VERSION }} | ||
- name: Install Dependencies | ||
shell: bash -l {0} | ||
run: pip install -r requirements/install.txt | ||
- name: Install Test Dependencies | ||
shell: bash -l {0} | ||
run: pip install -r requirements/dev.txt | ||
- name: Install Package | ||
shell: bash -l {0} | ||
run: python setup.py develop | ||
- name: Show Environment | ||
shell: bash -l {0} | ||
run: | | ||
conda info | ||
conda list | ||
- name: Run tests | ||
shell: bash -l {0} | ||
run: pytest tests --cov=qtsass --cov-report=term-missing -x -vv | ||
- name: Upload coverage to Codecov | ||
shell: bash -l {0} | ||
run: codecov -t 74b56e56-6c81-4b43-b830-c46638da84a7 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
codecov | ||
coverage==4.5.3 | ||
isort==4.3.15 | ||
pycodestyle==2.5.0 | ||
pydocstyle==3.0.0 | ||
pytest==4.4.1 | ||
pytest-cov==2.6.1 | ||
yapf==0.26 | ||
PySide2; python_version=="3.6" | ||
pytest | ||
pytest-cov | ||
yapf==0.26 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters