File tree Expand file tree Collapse file tree 2 files changed +56
-0
lines changed
Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ name : release
2+
3+ on :
4+ release :
5+ types :
6+ - released
7+
8+ jobs :
9+ test :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v2
13+ - name : Set up Python ${{ matrix.python-version }}
14+ uses : actions/setup-python@v2
15+ with :
16+ python-version : ' 3.x'
17+ - name : Install dependencies
18+ run : |
19+ python -m pip install --upgrade pip
20+ pip install setuptools wheel twine
21+ - name : Build and publish
22+ env :
23+ TWINE_USERNAME : __token__
24+ TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
25+ run : |
26+ python setup.py sdist
27+ twine upload dist/*
Original file line number Diff line number Diff line change 1+ name : release
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - dev
7+ - master
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ python-version : [3.7, 3.8, 3.9]
15+ steps :
16+ - uses : actions/checkout@v2
17+ - name : Set up Python ${{ matrix.python-version }}
18+ uses : actions/setup-python@v2
19+ with :
20+ python-version : ${{ matrix.python-version }}
21+ - name : Install dependencies
22+ run : |
23+ python -m pip install --upgrade pip
24+ pip install pipenv --upgrade
25+ pipenv install --python ${{ matrix.python-version }} --dev
26+ - name : Run linter
27+ run : pipenv run flake8 .
28+ - name : Run tests
29+ run : PYTHONPATH="$(pwd):$PYTHONPATH" pipenv run py.test --cov=crontools tests
You can’t perform that action at this time.
0 commit comments