Skip to content

Commit

Permalink
Migrate to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Stranger6667 committed Nov 26, 2020
1 parent a54d52b commit dc3365e
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 49 deletions.
97 changes: 97 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: CI

on: [push, pull_request]

jobs:
docs:
name: docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1

- uses: actions/setup-python@v2
with:
python-version: 3.7

- run: pip install tox

- name: Run docs tox job
run: tox -e docs
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1

- uses: actions/setup-python@v2
with:
python-version: 3.7

- run: pip install tox

- name: Run lint tox job
run: tox -e lint

tests:
strategy:
matrix:
include:
- python: pypy3
tox_env: django21-pypy3
- python: 3.5
tox_env: django111-py35
- python: 3.5
tox_env: django21-py35
- python: 3.5
tox_env: django22-py35
- python: 3.6
tox_env: django111-py36
- python: 3.6
tox_env: django21-py36
- python: 3.6
tox_env: django22-py36
- python: 3.6
tox_env: django30-py36
- python: 3.6
tox_env: django31-py36
- python: 3.6
tox_env: django_master-py36
- python: 3.6
tox_env: no_rest_framework
- python: 3.7
tox_env: django21-py37
- python: 3.7
tox_env: django22-py37
- python: 3.7
tox_env: django30-py37
- python: 3.7
tox_env: django31-py37
- python: 3.7
tox_env: django_master-py37
name: ${{ matrix.tox_env }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1

- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- run: pip install tox coverage

- name: Run ${{ matrix.tox_env }} tox job
run: tox -e ${{ matrix.tox_env }}

- run: coverage xml -i

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1.0.15
with:
file: ./coverage.xml
name: codecov-py${{ matrix.python }}
49 changes: 0 additions & 49 deletions .travis.yml

This file was deleted.

0 comments on commit dc3365e

Please sign in to comment.