Skip to content

Commit

Permalink
WIP: Enable github actions (pytest-dev#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Aug 13, 2020
1 parent cbfc38d commit 8d45718
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: gh

on:
create: # is used for publishing to PyPI and TestPyPI
tags: # any tag regardless of its name, no branches
push: # only publishes pushes to the main branch to TestPyPI
branches: # any branch but not tag
- >-
**
tags-ignore:
- >-
**
pull_request:

jobs:
build:
name: ${{ matrix.name }}
runs-on: ubuntu-18.04
strategy:
matrix:
include:
- name: linting
python-version: 3.6
- name: py36
python-version: 3.6
- name: py37
python-version: 3.7
- name: py38
python-version: 3.8
- name: pypy3
python-version: pypy3
steps:
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix['python-version'] }}
- name: Install tox
run: |
python -m pip install --upgrade tox
- name: Test with tox
run: |
python -m tox -e ${{ matrix.name }}

0 comments on commit 8d45718

Please sign in to comment.