File tree Expand file tree Collapse file tree 3 files changed +91
-10
lines changed Expand file tree Collapse file tree 3 files changed +91
-10
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+
9+ jobs :
10+ test :
11+ name : Python ${{ matrix.python }}
12+ runs-on : ubuntu-latest
13+ strategy :
14+ matrix :
15+ python : ['3.9', '3.10', '3.11']
16+
17+ env :
18+ RELEASE_FILE : ${{ github.event.repository.name }}-${{ github.event.release.tag_name || github.sha }}-py${{ matrix.python }}
19+
20+ steps :
21+ - name : Checkout Code
22+ uses : actions/checkout@v3
23+
24+ - name : Set up Python ${{ matrix.python }}
25+ uses : actions/setup-python@v3
26+ with :
27+ python-version : ${{ matrix.python }}
28+
29+ - name : Install Dependencies
30+ run : |
31+ make dev-deps
32+
33+ - name : Build Packages
34+ run : |
35+ make build
36+
37+ - name : Upload Packages
38+ uses : actions/upload-artifact@v3
39+ with :
40+ name : ${{ env.RELEASE_FILE }}
41+ path : dist/
Original file line number Diff line number Diff line change 1+ name : QA
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+
9+ jobs :
10+ test :
11+ name : linting & spelling
12+ runs-on : ubuntu-latest
13+
14+ env :
15+ TERM : xterm-256color
16+
17+ steps :
18+ - name : Checkout Code
19+ uses : actions/checkout@v2
20+
21+ - name : Set up Python '3,11'
22+ uses : actions/setup-python@v3
23+ with :
24+ python-version : ' 3.11'
25+
26+ - name : Install Dependencies
27+ run : |
28+ make dev-deps
29+
30+ - name : Run Quality Assurance
31+ run : |
32+ make qa
33+
34+ - name : Run Code Checks
35+ run : |
36+ make check
Original file line number Diff line number Diff line change 1- name : Python Tests
1+ name : Tests
22
33on :
44 pull_request :
55 push :
66 branches :
7- - master
7+ - main
88
99jobs :
1010 test :
11+ name : Python ${{ matrix.python }}
1112 runs-on : ubuntu-latest
1213 strategy :
1314 matrix :
14- python : [2.7, 3.5, 3.7, 3.9 ]
15+ python : ['3.9', '3.10', '3.11' ]
1516
1617 steps :
17- - uses : actions/checkout@v2
18+ - name : Checkout Code
19+ uses : actions/checkout@v3
20+
1821 - name : Set up Python ${{ matrix.python }}
19- uses : actions/setup-python@v2
22+ uses : actions/setup-python@v3
2023 with :
2124 python-version : ${{ matrix.python }}
25+
2226 - name : Install Dependencies
2327 run : |
24- python -m pip install --upgrade setuptools tox
28+ make dev-deps
29+
2530 - name : Run Tests
26- working-directory : library
2731 run : |
28- tox -e py
32+ make pytest
33+
2934 - name : Coverage
35+ if : ${{ matrix.python == '3.9' }}
3036 env :
3137 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32- working-directory : library
3338 run : |
3439 python -m pip install coveralls
3540 coveralls --service=github
36- if : ${{ matrix.python == '3.9' }}
3741
You can’t perform that action at this time.
0 commit comments