Skip to content

Commit 8b8353c

Browse files
authored
Merge pull request #116 from TotallyNotRobots/gh-actions
Add github actions config
2 parents 52d1d4b + 9ee6bda commit 8b8353c

File tree

3 files changed

+50
-51
lines changed

3 files changed

+50
-51
lines changed

.github/workflows/pythonapp.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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 apt deps
39+
run: sudo apt-get install -qq -y libenchant-dev libxml2-dev libxslt1-dev
40+
- name: Install dependencies
41+
run: |
42+
pip install -U pip setuptools cython
43+
pip install -Ur travis/requirements.txt
44+
- name: Test with pytest
45+
run: pytest
46+
env:
47+
PYTHONASYNCIODEBUG: ${{ matrix.asyncio-debug }}
48+
PYTHONPATH: .
49+
- uses: codecov/codecov-action@v1

.travis.yml

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

travis/requirements.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
freezegun==0.3.15
22
pytest==5.4.1
33
pytest-asyncio==0.10.0
4-
responses==0.10.12
54
pytest-cov==2.8.1
65
pytest-random-order==1.0.4
7-
pytest-travis-fold==1.3.0
8-
codecov==2.0.22
6+
responses==0.10.12
97
-r ../requirements.txt

0 commit comments

Comments
 (0)