Start testing in Github Actions
parent
826bb2badd
commit
66f3734afa
@ -0,0 +1,34 @@
|
|||||||
|
name: tests
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version: [3.6, 3.7, 3.8, 3.9]
|
||||||
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
|
runs-on: ${{ matrix.platform }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip setuptools wheel
|
||||||
|
python -m pip install tox
|
||||||
|
- name: Run tests
|
||||||
|
run: tox -e py
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip setuptools wheel
|
||||||
|
python -m pip install tox
|
||||||
|
- name: Lint
|
||||||
|
run: tox -e formatting,lint
|
@ -1,26 +0,0 @@
|
|||||||
os: linux
|
|
||||||
dist: xenial
|
|
||||||
language: python
|
|
||||||
install:
|
|
||||||
- pip install tox-travis
|
|
||||||
script:
|
|
||||||
- tox
|
|
||||||
python:
|
|
||||||
- 3.6
|
|
||||||
- 3.7
|
|
||||||
- 3.8
|
|
||||||
- 3.9
|
|
||||||
jobs:
|
|
||||||
include:
|
|
||||||
- python: 3.9
|
|
||||||
env: TOXENV=docs
|
|
||||||
- python: 3.9
|
|
||||||
env: TOXENV=lint
|
|
||||||
- python: 3.9
|
|
||||||
env: TOXENV=formatting
|
|
||||||
notifications:
|
|
||||||
slack:
|
|
||||||
rooms:
|
|
||||||
- readthedocs:y3hjODOi7EIz1JAbD1Zb41sz#random
|
|
||||||
on_success: change
|
|
||||||
on_failure: always
|
|
@ -1,13 +0,0 @@
|
|||||||
build: false
|
|
||||||
environment:
|
|
||||||
matrix:
|
|
||||||
- PYTHON: "C:/Python37"
|
|
||||||
install:
|
|
||||||
- ps: "[Net.ServicePointManager]::SecurityProtocol = 'Ssl3, Tls, Tls11, Tls12'"
|
|
||||||
- ps: "Start-FileDownload 'https://bootstrap.pypa.io/get-pip.py' -FileName 'C:/get-pip.py'"
|
|
||||||
- "%PYTHON%/python.exe C:/get-pip.py"
|
|
||||||
- "%PYTHON%/Scripts/pip.exe --version"
|
|
||||||
- "%PYTHON%/Scripts/pip.exe install tox"
|
|
||||||
test_script:
|
|
||||||
- "git clone https://github.com/aspnet/Identity %APPVEYOR_BUILD_FOLDER%/tests/dotnetexample/example/Identity"
|
|
||||||
- "%PYTHON%/Scripts/tox.exe -e py37"
|
|
@ -1,24 +0,0 @@
|
|||||||
strictness: low
|
|
||||||
|
|
||||||
test-warnings: false
|
|
||||||
doc-warnings: true
|
|
||||||
|
|
||||||
ignore-paths:
|
|
||||||
- docs
|
|
||||||
- tests
|
|
||||||
|
|
||||||
pep8:
|
|
||||||
run: false
|
|
||||||
|
|
||||||
pylint:
|
|
||||||
max-line-length: 100
|
|
||||||
disable:
|
|
||||||
- interface-not-implemented
|
|
||||||
# We still support Python 2 so we have to inherit from object
|
|
||||||
- useless-object-inheritance
|
|
||||||
|
|
||||||
mccabe:
|
|
||||||
run: false
|
|
||||||
|
|
||||||
pep257:
|
|
||||||
run: false
|
|
Loading…
Reference in New Issue