Skip to content

Commit

Permalink
packaging: Enable github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rbarrois committed Apr 29, 2021
1 parent c52d39f commit 0953500
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Check

on:
- push
- pull_request

jobs:
build:
name: ${{ matrix.tox-environment }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
tox-environment:
- docs
- lint

env:
TOXENV: ${{ matrix.tox-environment }}

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2

- name: Install dependencies
run: python -m pip install tox

- name: Run
run: tox
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test

on:
- push
- pull_request

jobs:
build:
name: Python ${{ matrix.python-version }} / ${{ matrix.tox-environment }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python-version:
- 2.7
- 3.6
- 3.7
- 3.8
- 3.9

env:
TOXENV: ${{ matrix.tox-environment }}

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 tox

- name: Run tests
run: tox

0 comments on commit 0953500

Please sign in to comment.