Skip to content

Commit 7038dc5

Browse files
committed
dev only with latest Python version
Signed-off-by: Neil Johnson <[email protected]>
1 parent 6713e31 commit 7038dc5

File tree

3 files changed

+38
-37
lines changed

3 files changed

+38
-37
lines changed

.github/workflows/mkdocs-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ jobs:
1010
- uses: actions/checkout@v4
1111
- uses: actions/setup-python@v5
1212
with:
13-
python-version: 3.x
13+
python-version: 3.12
1414
- run: pip install --disable-pip-version-check -r requirements.txt
1515
- run: mkdocs gh-deploy --force

.github/workflows/pipeline.yml

+30-27
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,29 @@ name: CI/CD
33
on: push
44

55
jobs:
6-
CI:
6+
build-wheel:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-python@v5
12+
with:
13+
python-version: 3.12
14+
15+
- run: pip install --disable-pip-version-check -r requirements.txt
16+
- run: pycodestyle tnz/*.py
17+
- run: python -m build --wheel --outdir dist/
18+
- uses: actions/upload-artifact@v4
19+
with:
20+
name: dist
21+
path: dist/
22+
23+
test-wheel:
24+
needs: build-wheel
725
runs-on: ubuntu-latest
826
strategy:
927
matrix:
10-
python-version: [ '3.7', '3.8', '3.9', '3.10' ]
28+
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
1129

1230
steps:
1331
- uses: actions/checkout@v4
@@ -16,39 +34,24 @@ jobs:
1634
with:
1735
python-version: ${{ matrix.python-version }}
1836

19-
- name: Install dependencies
20-
run: |
21-
pip install --disable-pip-version-check -r requirements.txt
37+
- run: pip install --disable-pip-version-check -r requirements.txt
38+
- uses: actions/download-artifact@v4
39+
- run: pip install $(dist/*.whl)
40+
- run: pytest
2241

23-
- name: Lint
24-
run: |
25-
pycodestyle tnz/*.py
26-
27-
- name: Install tnz
28-
run: |
29-
pip install .
30-
31-
- name: Run tests
32-
run: |
33-
pytest
34-
35-
CD:
42+
deploy-pypi:
3643
if: startsWith(github.ref, 'refs/tags')
37-
needs: CI
44+
needs: build
3845
runs-on: ubuntu-latest
3946

4047
steps:
4148
- uses: actions/checkout@v4
4249
- uses: actions/setup-python@v5
50+
with:
51+
python-version: 3.12
4352

44-
- name: Install dependencies
45-
run: |
46-
pip install --disable-pip-version-check -r requirements.txt
47-
48-
- name: Build dist
49-
run: |
50-
python -m build --wheel --outdir dist/
51-
53+
- run: pip install --disable-pip-version-check -r requirements.txt
54+
- uses: actions/download-artifact@v4
5255
- name: Publish
5356
env:
5457
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

requirements.txt

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
black==24.4.2; python_version>="3.8"
1+
black==24.4.2
22
build==1.0.3
33
ebcdic==1.1.1; sys_platform!="zos"
4-
mkdocs-material==9.5.31; python_version>="3.8"
5-
mkdocs-minify-plugin==0.8.0; python_version>="3.8"
6-
mkdocstrings-python==1.10.5; python_version>="3.8"
7-
pycodestyle==2.10.0; python_version<"3.8"
8-
pycodestyle==2.12.0; python_version>="3.8"
4+
mkdocs-material==9.5.31
5+
mkdocs-minify-plugin==0.8.0
6+
mkdocstrings-python==1.10.5
7+
pycodestyle==2.12.0
98
pylint==2.17.5
10-
pytest==8.3.2; python_version>="3.8"
11-
pytest>=7.4.2; python_version<"3.8"
12-
twine==5.1.1; sys_platform!="zos" and python_version>="3.8"
9+
pytest==8.3.2
10+
twine==5.1.1; sys_platform!="zos"
1311
wheel==0.41.2

0 commit comments

Comments
 (0)