Skip to content

Commit

Permalink
Replace CircleCI with Github Actions. (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoclawski authored May 21, 2024
1 parent 987df44 commit cea7b8b
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 53 deletions.
48 changes: 0 additions & 48 deletions .circleci/config.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install tox and any other packages
run: pip install tox
- name: Run tox
run: tox run -e py
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ include dev_requirements.txt
include CHANGELOG.md
include LICENSE
include README.md
prune .circleci
exclude tox.ini
2 changes: 0 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
[flake8]
max-line-length = 120
max-complexity = 10

[isort]
force_single_line = true
line_length = 120
lines_between_types = 1
skip_glob = *.template
known_third_party = yaml

[zest.releaser]
create-wheel = yes
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ def get_long_description():
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'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',
],
)
15 changes: 15 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[tox]
requires =
tox>=4
env_list = py{39,310,311,312}

[testenv]
description = run linters
skip_install = true
deps =
flake8
flake8-commas
isort
commands =
flake8
isort --check --diff .

0 comments on commit cea7b8b

Please sign in to comment.