Skip to content

Commit a326094

Browse files
Copilotnsaje
andauthored
Migrate CI from CircleCI to GitHub Actions with Python 3.10-3.14 (#17)
* Initial plan * Add GitHub Actions workflow and update Python versions to 3.10-3.14 Co-authored-by: nsaje <156006+nsaje@users.noreply.github.com> * Remove CircleCI configuration Co-authored-by: nsaje <156006+nsaje@users.noreply.github.com> * Add explicit permissions to GitHub Actions workflow Co-authored-by: nsaje <156006+nsaje@users.noreply.github.com> * Fix test command - use unittest discover instead of setup.py test Co-authored-by: nsaje <156006+nsaje@users.noreply.github.com> * Trigger workflow on push to all branches only Co-authored-by: nsaje <156006+nsaje@users.noreply.github.com> * Switch from unittest to pytest for running tests Co-authored-by: nsaje <156006+nsaje@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: nsaje <156006+nsaje@users.noreply.github.com>
1 parent 90e4b2e commit a326094

File tree

5 files changed

+43
-41
lines changed

5 files changed

+43
-41
lines changed

.circleci/config.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
strategy:
12+
matrix:
13+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install flake8 pytest pytz python-dateutil
27+
28+
- name: Lint with flake8
29+
run: flake8
30+
31+
- name: Test with pytest
32+
run: pytest

setup.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
[flake8]
22
exclude=.eggs,venv,build,.tox
33
max-complexity=5
4+
5+
[tool:pytest]
6+
python_files = __init__.py
7+
python_classes = *TestCase
8+
python_functions = test_*

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@
2424
'Topic :: Software Development :: Libraries :: Python Modules',
2525
'Programming Language :: Python',
2626
'Programming Language :: Python :: 3',
27-
'Programming Language :: Python :: 3.6',
28-
'Programming Language :: Python :: 3.7',
29-
'Programming Language :: Python :: 3.8',
27+
'Programming Language :: Python :: 3.10',
28+
'Programming Language :: Python :: 3.11',
29+
'Programming Language :: Python :: 3.12',
30+
'Programming Language :: Python :: 3.13',
31+
'Programming Language :: Python :: 3.14',
3032
],
3133
packages=[
3234
'freezefrog',

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py36,py37,py38
2+
envlist = py310,py311,py312,py313,py314
33

44
[testenv]
55
deps = pytz python-dateutil

0 commit comments

Comments
 (0)