committed by
GitHub
2 changed files with 81 additions and 65 deletions
@ -0,0 +1,81 @@ |
|||||
|
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions |
||||
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions |
||||
|
|
||||
|
name: Testing Initiative |
||||
|
|
||||
|
on: |
||||
|
push: |
||||
|
branches: [ master ] |
||||
|
paths-ignore: |
||||
|
- '.gitignore' |
||||
|
- '*.md' |
||||
|
- '*.rst' |
||||
|
- 'LICENSE' |
||||
|
- 'Vagrantfile' |
||||
|
- 'protobuf_list.txt' |
||||
|
- 'protobufs/**' |
||||
|
- 'recipes/**' |
||||
|
pull_request: |
||||
|
branches: [ master ] |
||||
|
paths-ignore: |
||||
|
- '.gitignore' |
||||
|
- '*.md' |
||||
|
- '*.rst' |
||||
|
- 'LICENSE' |
||||
|
- 'Vagrantfile' |
||||
|
- 'protobuf_list.txt' |
||||
|
- 'protobufs/**' |
||||
|
- 'recipes/**' |
||||
|
jobs: |
||||
|
test: |
||||
|
runs-on: ${{ matrix.os }} |
||||
|
strategy: |
||||
|
matrix: |
||||
|
os: [ubuntu-latest, macos-latest, windows-latest] |
||||
|
python-version: [2.7, 3.5, 3.6, 3.7, 3.8] |
||||
|
# exclude: |
||||
|
# - os: macos-latest |
||||
|
# python-version: 3.8 |
||||
|
# - os: windows-latest |
||||
|
# python-version: 3.6 |
||||
|
steps: |
||||
|
- uses: actions/checkout@v2 |
||||
|
- name: Set up Python Env |
||||
|
uses: actions/setup-python@v2 |
||||
|
with: |
||||
|
python-version: ${{ matrix.python-version }} |
||||
|
- name: Display Python version |
||||
|
run: python -c "import sys; print(sys.version)" |
||||
|
- name: Install dependencies |
||||
|
run: | |
||||
|
pip install -r requirements.txt |
||||
|
pip install coveralls |
||||
|
- name: Run Tests |
||||
|
env: |
||||
|
PYTHONHASHSEED: "0" |
||||
|
run: | |
||||
|
pytest --cov=steam tests |
||||
|
- name: Coveralls |
||||
|
env: |
||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
||||
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} |
||||
|
run: | |
||||
|
coveralls |
||||
|
build-docs: |
||||
|
runs-on: ${{ matrix.os }} |
||||
|
strategy: |
||||
|
matrix: |
||||
|
os: [ubuntu-latest] |
||||
|
python-version: [3.6] |
||||
|
steps: |
||||
|
- uses: actions/checkout@v2 |
||||
|
- name: Set up Python Env |
||||
|
uses: actions/setup-python@v2 |
||||
|
with: |
||||
|
python-version: ${{ matrix.python-version }} |
||||
|
- name: Display Python version |
||||
|
run: python -c "import sys; print(sys.version)" |
||||
|
- name: Install dependencies |
||||
|
run: make init |
||||
|
- name: Build Docs |
||||
|
run: make docs |
@ -1,65 +0,0 @@ |
|||||
language: python |
|
||||
os: linux |
|
||||
jobs: |
|
||||
include: |
|
||||
# docs build |
|
||||
- name: Docs (py36) |
|
||||
python: 3.6 |
|
||||
install: make init |
|
||||
script: make docs |
|
||||
after_script: [] |
|
||||
# linux |
|
||||
- python: 2.7 |
|
||||
- python: 3.5 |
|
||||
- python: 3.6 |
|
||||
- python: 3.7 |
|
||||
- python: 3.8 |
|
||||
# OSX |
|
||||
- name: OSX Python 2.7 |
|
||||
os: osx |
|
||||
language: shell |
|
||||
before_install: |
|
||||
- cp -fv `which python2` `which python` || true |
|
||||
- cp -fv `which pip2` `which pip` || true |
|
||||
- pip install --upgrade pip |
|
||||
after_script: [] |
|
||||
- name: OSX Python 3.7 |
|
||||
os: osx |
|
||||
language: shell |
|
||||
before_install: |
|
||||
- cp -fv `which python3` `which python` || true |
|
||||
- cp -fv `which pip3` `which pip` || true |
|
||||
- pip install --upgrade pip |
|
||||
after_script: [] |
|
||||
# Windows |
|
||||
- name: Win Python 3.6 |
|
||||
language: shell |
|
||||
os: windows |
|
||||
env: PATH=/c/Python36:/c/Python36/Scripts:$PATH |
|
||||
before_install: |
|
||||
- choco install python --version 3.6.8 |
|
||||
- python -m pip install --upgrade pip |
|
||||
after_script: [] |
|
||||
- name: Win Python 3.7 |
|
||||
language: shell |
|
||||
os: windows |
|
||||
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH |
|
||||
before_install: |
|
||||
- choco install python --version 3.7.4 |
|
||||
- python -m pip install --upgrade pip |
|
||||
after_script: [] |
|
||||
- name: Win Python 3.8 |
|
||||
language: shell |
|
||||
os: windows |
|
||||
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH |
|
||||
before_install: |
|
||||
- choco install python --version 3.8.2 |
|
||||
- python -m pip install --upgrade pip |
|
||||
after_script: [] |
|
||||
install: |
|
||||
- pip install -r requirements.txt |
|
||||
- pip install coveralls |
|
||||
script: |
|
||||
- PYTHONHASHSEED=0 pytest --cov=steam tests |
|
||||
after_script: |
|
||||
- coveralls |
|
Loading…
Reference in new issue