File tree Expand file tree Collapse file tree 2 files changed +39
-7
lines changed Expand file tree Collapse file tree 2 files changed +39
-7
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 1- name : Python package
1+ name : Tests
22
33on : [push]
44
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
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}}
You can’t perform that action at this time.
0 commit comments