enhancement: add github actions configuration file
Add github actions (gh) configuration file and update tox.ini to add gh related configurations.pull/320/head
parent
61f606da8e
commit
a64b865fba
@ -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:
|
Loading…
Reference in New Issue