Skip to content

Commit 0badd16

Browse files
committed
Add dist check step
1 parent 04cbab0 commit 0badd16

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/tests.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
name: Tests
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
48

59
jobs:
6-
build:
710

11+
dist:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Install gettext
15+
run: sudo apt-get install gettext -y
16+
- uses: actions/setup-python@v2
17+
- run: python -m pip install --upgrade pip setuptools wheel twine readme-renderer
18+
- uses: actions/checkout@v2
19+
- run: python setup.py sdist bdist_wheel
20+
- run: python -m twine check dist/*
21+
22+
pytest:
823
runs-on: ubuntu-latest
924
strategy:
1025
max-parallel: 4
@@ -16,7 +31,6 @@ jobs:
1631
django-version:
1732
- "2.2"
1833
- "3.1"
19-
2034
steps:
2135
- uses: actions/checkout@v1
2236
- name: Set up Python ${{ matrix.python-version }}

0 commit comments

Comments
 (0)