Skip to content

Commit

Permalink
Update CI to use ruff and modern building
Browse files Browse the repository at this point in the history
  • Loading branch information
SethMMorton committed Oct 9, 2024
1 parent 2ed418e commit a123d8f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
with:
python-version: '3.8'

- name: Install black
run: pip install black
- name: Install ruff
uses: astral-sh/ruff-action@v1

- name: Run black
run: black --quiet --check --diff .
- name: Run ruff
run: ruff format --check

static-analysis:
name: Static Analysis
Expand All @@ -40,11 +40,11 @@ jobs:
with:
python-version: '3.8'

- name: Install Flake8
run: pip install flake8 flake8-import-order flake8-bugbear pep8-naming
- name: Install ruff
uses: astral-sh/ruff-action@v1

- name: Run Flake8
run: flake8
- name: Run ruff
run: ruff check

type-checking:
name: Type Checking
Expand Down Expand Up @@ -77,10 +77,9 @@ jobs:
python-version: '3.8'

- name: Install Validators
run: pip install twine check-manifest
run: pip install twine build

- name: Run Validation
run: |
check-manifest --ignore ".github*,*.md,.coveragerc"
python setup.py sdist
python -m build
twine check dist/*
5 changes: 2 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ jobs:

- name: Build Source Distribution and Wheel
run: |
pip install wheel
python setup.py sdist --format=gztar
pip wheel . -w dist
pip install build
python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
os: [ubuntu-latest]
extras: [false]
include:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=64", "setuptools-scm>=8.0"]
requires = ["setuptools>=64", "setuptools-scm>=7.1"]
build-backend = "setuptools.build_meta"

[project]
Expand Down

0 comments on commit a123d8f

Please sign in to comment.