Skip to content

Commit d44a980

Browse files
committed
ci: add package release checks
1 parent ad27b06 commit d44a980

3 files changed

Lines changed: 29 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,40 @@ jobs:
1010
test:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
13+
fail-fast: false
1314
matrix:
1415
os: [ubuntu-latest, macos-latest, windows-latest]
15-
python-version: ["3.10", "3.12"]
16+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1617

1718
steps:
1819
- uses: actions/checkout@v6
1920
- uses: actions/setup-python@v6
2021
with:
2122
python-version: ${{ matrix.python-version }}
23+
cache: pip
2224

2325
- name: Install dependencies
24-
run: pip install -e ".[dev]"
26+
run: |
27+
python -m pip install -U pip
28+
python -m pip install -e ".[dev]"
2529
2630
- name: Run tests
2731
run: python -m pytest tests/ -v
32+
33+
- name: Compile
34+
run: python -m compileall -q corecoder tests
35+
36+
package:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v6
40+
- uses: actions/setup-python@v6
41+
with:
42+
python-version: "3.13"
43+
cache: pip
44+
45+
- name: Build
46+
run: |
47+
python -m pip install -U pip build twine
48+
python -m build
49+
python -m twine check dist/*

.github/workflows/publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ jobs:
1515
- uses: actions/checkout@v6
1616
- uses: actions/setup-python@v6
1717
with:
18-
python-version: "3.12"
18+
python-version: "3.13"
1919

2020
- name: Install build tools
21-
run: pip install build
21+
run: python -m pip install -U pip build twine
2222

2323
- name: Build package
24-
run: python -m build
24+
run: |
25+
python -m build
26+
python -m twine check dist/*
2527
2628
- name: Publish to PyPI
2729
uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ classifiers = [
1717
"Development Status :: 4 - Beta",
1818
"Environment :: Console",
1919
"Intended Audience :: Developers",
20-
"License :: OSI Approved :: MIT License",
2120
"Operating System :: OS Independent",
2221
"Programming Language :: Python :: 3",
2322
"Programming Language :: Python :: 3.10",

0 commit comments

Comments
 (0)