Skip to content

Commit bf864e9

Browse files
authored
Use GitHub CI in favor of Travis (#214)
1 parent ba36e6c commit bf864e9

File tree

3 files changed

+60
-36
lines changed

3 files changed

+60
-36
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: PyPi Release
2+
3+
on:
4+
release:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v1
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install gettext
20+
run: sudo apt-get install gettext -y
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip setuptools wheel twine
24+
- name: Build dist packages
25+
run: python setup.py sdist bdist_wheel
26+
- name: Upload packages
27+
run: twine upload dist/*
28+
env:
29+
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
30+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}

.github/workflows/tests.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Tests
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
max-parallel: 4
11+
matrix:
12+
python-version: [3.5, 3.6, 3.7]
13+
django-version: [1.11.*, 2.2.*]
14+
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v1
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip setuptools
24+
pip install django==${{ matrix.django-version }}
25+
- name: Test with pytest
26+
run: python setup.py test
27+
- name: Codecov
28+
uses: codecov/[email protected]
29+
with:
30+
token: ${{secrets.CODECOV_TOKEN}}

.travis.yml

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

0 commit comments

Comments
 (0)