File tree 3 files changed +73
-0
lines changed
3 files changed +73
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Lint checks
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ build :
7
+ name : Lint
8
+ runs-on : ubuntu-latest
9
+ strategy :
10
+ matrix :
11
+ python-version : ['3.7']
12
+
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - name : Set up Python ${{ matrix.python-version }}
16
+ uses : actions/setup-python@v2
17
+ with :
18
+ python-version : ${{ matrix.python-version }}
19
+ - name : Run lint checks
20
+ run : make lint
Original file line number Diff line number Diff line change
1
+ name : Publish new version of fqn-decorators
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ jobs :
8
+ deploy :
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - name : Set up Python
14
+ uses : actions/setup-python@v2
15
+ with :
16
+ python-version : ' 3.7'
17
+ - name : Install dependencies
18
+ run : |
19
+ python -m pip install --upgrade pip
20
+ pip install build
21
+ - name : Build package
22
+ run : python -m build
23
+ - name : Publish package
24
+ uses : pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
25
+ with :
26
+ user : __token__
27
+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Unit tests
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ build :
7
+ name : Unit tests
8
+ runs-on : ubuntu-latest
9
+ strategy :
10
+ matrix :
11
+ python-version : ['3.6', '3.7', '3.8', '3.9']
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - name : Set up Python ${{ matrix.python-version }}
15
+ uses : actions/setup-python@v2
16
+ with :
17
+ python-version : ${{ matrix.python-version }}
18
+ - name : Install Tox and other dependencies
19
+ run : pip install tox tox-docker wheel twine
20
+ - name : Run tests with Tox
21
+ # Run tox using the version of Python in `PATH`
22
+ run : tox -e py
23
+ - name : Test package build
24
+ run : |
25
+ python setup.py sdist bdist_wheel
26
+ twine check dist/*
You can’t perform that action at this time.
0 commit comments