Skip to content

Commit 08a107e

Browse files
committed
wip
1 parent 535cf62 commit 08a107e

File tree

2 files changed

+39
-7
lines changed

2 files changed

+39
-7
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 }}
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Python package
1+
name: Tests
22

33
on: [push]
44

@@ -10,7 +10,7 @@ jobs:
1010
max-parallel: 4
1111
matrix:
1212
python-version: [3.5, 3.6, 3.7]
13-
django-version: [1.11, 2.2, master]
13+
django-version: [1.11.*, 2.2.*]
1414

1515
steps:
1616
- uses: actions/checkout@v1
@@ -20,9 +20,11 @@ jobs:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Install dependencies
2222
run: |
23-
python -m pip install --upgrade pip
24-
pip install --upgrade tox codecov
23+
python -m pip install --upgrade pip setuptools
24+
pip install django==${{ matrix.django-version }}
2525
- name: Test with pytest
26-
run: |
27-
tox -e py${{ matrix.python-version}}-dj${{ matrix.django-version }}
28-
codecov
26+
run: python setup.py test
27+
- name: Codecov
28+
uses: codecov/codecov-action@v1.0.2
29+
with:
30+
token: ${{secrets.CODECOV_TOKEN}}

0 commit comments

Comments
 (0)