forked from pytest-dev/pytest-html
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Enable github actions (pytest-dev#330)
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |