Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop python 3.7 and 3.8; add 3.13 support #389

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 16 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,43 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12']
python-version: [3.9, '3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5

- name: Install the latest version of uv
uses: astral-sh/setup-uv@v3
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: setup.py
version: "latest"
enable-cache: true
cache-dependency-glob: "**/setup.py"

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 11
java-version: 17

- name: Install python
run: uv venv --python ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pycodestyle unittest-xml-reporting
pip install .
uv pip install pycodestyle unittest-xml-reporting
uv pip install .

- name: Test
run: python -m xmlrunner discover -v -o test-results/test/
run: uv run -m xmlrunner discover -v -o test-results/test/

- name: Pycodestyle
run: pycodestyle cr8
run: uv run -m pycodestyle cr8

- name: Upload results to wacklig
env:
WACKLIG_TOKEN: ${{ secrets.WACKLIG_TOKEN }}
run: |
curl -s https://raw.githubusercontent.com/pipifein/wacklig-uploader/master/wacklig.py | python - --token "$WACKLIG_TOKEN" || echo "Upload to wacklig failed"
curl -s https://raw.githubusercontent.com/pipifein/wacklig-uploader/master/wacklig.py | uv run - --token "$WACKLIG_TOKEN" || echo "Upload to wacklig failed"

publish:
name: Build & publish package to pypi
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
],
use_scm_version=True,
setup_requires=['setuptools_scm']
Expand Down