Skip to content

Commit 8a3d97a

Browse files
committed
Update CI
1 parent b2eff66 commit 8a3d97a

File tree

5 files changed

+12
-91
lines changed

5 files changed

+12
-91
lines changed

.github/workflows/linting.yaml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
workflow_dispatch:
1111

1212
env:
13-
DEFAULT_PYTHON: "3.10"
13+
DEFAULT_PYTHON: "3.11"
1414

1515
jobs:
1616
codespell:
@@ -56,31 +56,10 @@ jobs:
5656
poetry config virtualenvs.in-project true
5757
- name: 🏗 Install Python dependencies
5858
run: poetry install --no-interaction
59-
- name: 🚀 Run Ruff
60-
run: poetry run ruff .
61-
62-
black:
63-
name: black
64-
runs-on: ubuntu-latest
65-
steps:
66-
- name: ⤵️ Check out code from GitHub
67-
uses: actions/[email protected]
68-
- name: 🏗 Set up Poetry
69-
run: pipx install poetry
70-
- name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
71-
id: python
72-
uses: actions/[email protected]
73-
with:
74-
python-version: ${{ env.DEFAULT_PYTHON }}
75-
cache: "poetry"
76-
- name: 🏗 Install workflow dependencies
77-
run: |
78-
poetry config virtualenvs.create true
79-
poetry config virtualenvs.in-project true
80-
- name: 🏗 Install Python dependencies
81-
run: poetry install --no-interaction
82-
- name: 🚀 Run black on docs
83-
run: poetry run blacken-docs
59+
- name: 🚀 Run ruff linter
60+
run: poetry run ruff check --output-format=github .
61+
- name: 🚀 Run ruff formatter
62+
run: poetry run ruff format --check .
8463

8564
pre-commit-hooks:
8665
name: pre-commit-hooks

.github/workflows/tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ on:
1010
workflow_dispatch:
1111

1212
env:
13-
DEFAULT_PYTHON: "3.10"
13+
DEFAULT_PYTHON: "3.11"
1414

1515
jobs:
1616
pytest:
1717
name: Python ${{ matrix.python }}
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
python: ["3.10", "3.11"]
21+
python: ["3.10", "3.11", "3.12"]
2222
steps:
2323
- name: ⤵️ Check out code from GitHub
2424
uses: actions/[email protected]
@@ -76,7 +76,7 @@ jobs:
7676
uses: codecov/[email protected]
7777
- name: SonarCloud Scan
7878
if: github.event.pull_request.head.repo.fork == false
79-
uses: SonarSource/sonarcloud-github-action@v1.9
79+
uses: SonarSource/sonarcloud-github-action@v2.0.2
8080
env:
8181
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8282
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/typing.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
workflow_dispatch:
1111

1212
env:
13-
DEFAULT_PYTHON: "3.10"
13+
DEFAULT_PYTHON: "3.11`"
1414

1515
jobs:
1616
mypy:

poetry.lock

Lines changed: 3 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ syrupy = "^4.5.0"
3232

3333
[tool.poetry.group.dev.dependencies]
3434
aresponses = "2.1.6"
35-
black = "23.11.0"
36-
blacken-docs = "1.16.0"
3735
codespell = "2.2.6"
3836
covdefaults = "2.3.0"
3937
coverage = {version = "7.3.2", extras = ["toml"]}

0 commit comments

Comments
 (0)