File tree Expand file tree Collapse file tree 7 files changed +129
-192
lines changed
Expand file tree Collapse file tree 7 files changed +129
-192
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : python
2+ on :
3+ push :
4+
5+ jobs :
6+ tests :
7+ runs-on : ubuntu-latest
8+ strategy :
9+ matrix :
10+ python-version : ["3.7", "3.11"]
11+ defaults :
12+ run :
13+ working-directory : python
14+
15+ steps :
16+ - uses : actions/checkout@v3
17+ - name : setup
18+ uses : actions/setup-python@v4
19+ with :
20+ python-version : ${{ matrix.python-version }}
21+ - name : install
22+ run : |
23+ python -m pip install --upgrade pip
24+ python -m pip install -r ci_requirements.txt
25+ - name : test
26+ run : |
27+ pytest --cov=covertable
28+ - name : codecov
29+ uses : codecov/codecov-action@v3
30+ with :
31+ token : ${{ secrets.CODECOV_TOKEN }}
32+ verbose : true
33+
34+ release :
35+ needs : tests
36+ runs-on : ubuntu-latest
37+ defaults :
38+ run :
39+ working-directory : python
40+ if : github.ref == 'refs/heads/master'
41+ name : npm upload
42+ steps :
43+ - uses : actions/checkout@v3
44+ - name : setup
45+ uses : actions/setup-python@v4
46+ with :
47+ python-version : 3.11
48+ - name : install
49+ run : |
50+ python -m pip install --upgrade pip
51+ python -m pip install -r ci_requirements.txt
52+ - name : build
53+ run : |
54+ python ./setup.py sdist bdist_wheel
55+ twine upload dist/* --non-interactive --skip-existing
56+ - name : upload
57+ run : twine upload dist/* --non-interactive --skip-existing
58+ env :
59+ TWINE_USERNAME : __token__
60+ TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : typescript
2+ on :
3+ push :
4+
5+ jobs :
6+ tests :
7+ runs-on : ubuntu-latest
8+ defaults :
9+ run :
10+ working-directory : typescript
11+
12+ steps :
13+ - uses : actions/checkout@v3
14+ - name : setup
15+ uses : actions/setup-node@v3
16+ with :
17+ node-version : " 16"
18+ - name : cache
19+ uses : actions/cache@v3
20+ with :
21+ path : |
22+ node_modules
23+ key : ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
24+ - name : install
25+ run : |
26+ npm install
27+ - name : test
28+ run : |
29+ npm test -- --coverage
30+ npm run codecov
31+ - name : codecov
32+ uses : codecov/codecov-action@v3
33+ with :
34+ token : ${{ secrets.CODECOV_TOKEN }}
35+ verbose : true
36+
37+ release :
38+ needs : tests
39+ runs-on : ubuntu-latest
40+ defaults :
41+ run :
42+ working-directory : typescript
43+
44+ if : github.ref == 'refs/heads/master'
45+ name : npm upload
46+ steps :
47+ - uses : actions/checkout@v3
48+ - name : setup
49+ uses : actions/setup-node@v3
50+ with :
51+ node-version : " 16"
52+ - name : cache
53+ uses : actions/cache@v3
54+ with :
55+ path : |
56+ node_modules
57+ key : ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
58+ - name : upload
59+ run : |
60+ npm install
61+ npm run build
62+ echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
63+ npm run publish || true
Original file line number Diff line number Diff line change @@ -200,7 +200,3 @@ History
200200:1.0.x:
201201
202202 - First release 🎉
203-
204- .. note ::
205-
206- It moved from `twopairs `.
Original file line number Diff line number Diff line change 1- tox
1+ pytest
2+ pytest-cov
23setuptools
34wheel
45twine
6+ black
Original file line number Diff line number Diff line change 1+ [pytest]
2+ python_files = tests.py
3+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments