enhancement: add github actions configuration file
Add github actions (gh) configuration file and update tox.ini to add gh related configurations.
This commit is contained in:
31
.github/workflows/tests.yml
vendored
Normal file
31
.github/workflows/tests.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
# .. seealso:: https://github.com/ymyzk/tox-gh-actions
|
||||||
|
#
|
||||||
|
name: Tests
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
max-parallel: 10
|
||||||
|
matrix:
|
||||||
|
python-version:
|
||||||
|
- 2.7
|
||||||
|
- 3.6
|
||||||
|
- 3.7
|
||||||
|
- 3.8
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pip install tox tox-gh-actions
|
||||||
|
- name: Test with tox
|
||||||
|
run: tox
|
||||||
|
|
||||||
|
# vim:sw=2:ts=2:et:
|
||||||
7
tox.ini
7
tox.ini
@@ -2,6 +2,13 @@
|
|||||||
envlist = py27, py34, py35, py36, py37, py38, nightly
|
envlist = py27, py34, py35, py36, py37, py38, nightly
|
||||||
minversion = 3.15
|
minversion = 3.15
|
||||||
|
|
||||||
|
[gh-actions]
|
||||||
|
python =
|
||||||
|
2.7: py27
|
||||||
|
3.6: py36
|
||||||
|
3.7: py37
|
||||||
|
3.8: py38
|
||||||
|
|
||||||
[base]
|
[base]
|
||||||
commands =
|
commands =
|
||||||
- /bin/sh -c 'yamllint -c {toxinidir}/yamllint/conf/default.yaml --strict `git ls-files \*.yaml \*.yml`'
|
- /bin/sh -c 'yamllint -c {toxinidir}/yamllint/conf/default.yaml --strict `git ls-files \*.yaml \*.yml`'
|
||||||
|
|||||||
Reference in New Issue
Block a user