Skip to content

Commit 4ded8b1

Browse files
committed
Use GH actions in favor of travis-ci
1 parent 9761670 commit 4ded8b1

File tree

5 files changed

+88
-74
lines changed

5 files changed

+88
-74
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: PyPi Release
2+
3+
on: [release]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- uses: actions/setup-python@v1
12+
- name: Install Python dependencies
13+
run: python -m pip install --upgrade pip setuptools wheel twine
14+
- uses: actions/setup-node@v1
15+
- name: Install Node dependencies
16+
run: npm install --only=dev
17+
- name: Minify JavaScript files
18+
run: npm run-script minify
19+
- name: Build dist packages
20+
run: python setup.py sdist bdist_wheel
21+
- name: Upload packages
22+
run: python -m twine upload dist/*
23+
env:
24+
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
25+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}

.github/workflows/standard.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: StandardJS
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: Set up Node
12+
uses: actions/setup-node@v1
13+
- name: Install Standard
14+
run: npm install -g standard
15+
- name: Run standard
16+
run: standard

.github/workflows/tests.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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.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+
22+
- name: Install Chrome
23+
run: |
24+
sudo apt-get update
25+
sudo apt-get install -y google-chrome-stable
26+
- name: Install Selenium
27+
run: |
28+
mkdir bin
29+
curl -O https://chromedriver.storage.googleapis.com/77.0.3865.40/chromedriver_linux64.zip
30+
unzip chromedriver_linux64.zip -d bin
31+
- name: Install dependencies
32+
run: |
33+
python -m pip install --upgrade pip setuptools wheel codecov
34+
pip install -e .[test]
35+
pip install django==${{ matrix.django-version }}
36+
- name: Run tests
37+
run: PATH=$PATH:$(pwd)/bin py.test
38+
- run: codecov
39+
env:
40+
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}

.travis.yml

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

setup.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ tests_require =
4040
pytest-django
4141
selenium
4242

43+
[options.extras_require]
44+
test =
45+
pytest
46+
pytest-cov
47+
pytest-django
48+
selenium
49+
4350
[options.package_data]
4451
* = *.txt, *.rst, *.html, *.po
4552

0 commit comments

Comments
 (0)