Skip to content

Commit 85ce36d

Browse files
committed
Add github actions config
1 parent 52d1d4b commit 85ce36d

File tree

2 files changed

+48
-48
lines changed

2 files changed

+48
-48
lines changed

.github/workflows/pythonapp.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Python application
5+
on:
6+
push:
7+
branches:
8+
- gonzobot
9+
pull_request:
10+
branches:
11+
- gonzobot
12+
jobs:
13+
build:
14+
strategy:
15+
matrix:
16+
python-ver:
17+
- "3.5"
18+
- "3.6"
19+
- "3.7"
20+
- "3.8"
21+
- pypy3
22+
asyncio-debug:
23+
- 0
24+
- 1
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Set up Python ${{ matrix.python-ver }}
29+
uses: actions/setup-python@v1
30+
with:
31+
python-version: ${{ matrix.python-ver }}
32+
- uses: actions/cache@v1
33+
with:
34+
path: ~/.cache/pip
35+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
36+
restore-keys: |
37+
${{ runner.os }}-pip-
38+
- name: Install dependencies
39+
run: |
40+
python -m pip install -U pip setuptools cython
41+
sudo apt-get install -qq -y libenchant-dev libxml2-dev libxslt1-dev
42+
pip install -Ur travis/requirements.txt
43+
- name: Test with pytest
44+
run: pytest
45+
env:
46+
PYTHONASYNCIODEBUG: ${{ matrix.asyncio-debug }}
47+
PYTHONPATH: .
48+
- uses: codecov/codecov-action@v1

.travis.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)