Skip to content
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
54 changes: 15 additions & 39 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,45 +16,29 @@ jobs:
steps:
- name: 猡碉笍 Check out code from GitHub
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: 馃彈 Set up Poetry
run: pipx install poetry
- name: 馃彈 Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
- name: 馃彈 Set up UV
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
cache: "poetry"
- name: 馃彈 Install workflow dependencies
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
- name: 馃彈 Install Python dependencies
run: poetry install --no-interaction
- name: 馃彈 Install dependencies
run: uv sync --frozen --no-progress
- name: 馃殌 Check code for common misspellings
run: poetry run codespell **/*.py
run: uv run --frozen codespell **/*.py

ruff:
name: ruff
runs-on: ubuntu-latest
steps:
- name: 猡碉笍 Check out code from GitHub
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: 馃彈 Set up Poetry
run: pipx install poetry
- name: 馃彈 Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
- name: 馃彈 Set up UV
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
cache: "poetry"
- name: 馃彈 Install workflow dependencies
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
- name: 馃彈 Install Python dependencies
run: poetry install --no-interaction
- name: 馃彈 Install dependencies
run: uv sync --frozen --no-progress
- name: 馃殌 Run ruff linter
run: poetry run ruff check --output-format=github .
run: uv run --frozen ruff check --output-format=github .
# - name: 馃殌 Run ruff formatter
# run: poetry run ruff format --check .

Expand All @@ -64,19 +48,11 @@ jobs:
steps:
- name: 猡碉笍 Check out code from GitHub
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: 馃彈 Set up Poetry
run: pipx install poetry
- name: 馃彈 Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
- name: 馃彈 Set up UV
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
cache: "poetry"
- name: 馃彈 Install workflow dependencies
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
- name: 馃彈 Install Python dependencies
run: poetry install --no-interaction
- name: 馃彈 Install dependencies
run: uv sync --frozen --no-progress
- name: 馃殌 Run pylint
run: poetry run pylint **/*.py
run: uv run --frozen pylint **/*.py
18 changes: 5 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,20 @@ jobs:
steps:
- name: 猡碉笍 Check out code from GitHub
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: 馃彈 Set up Poetry
run: pipx install poetry
- name: 馃彈 Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
- name: 馃彈 Set up UV
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
cache: "poetry"
- name: 馃彈 Install workflow dependencies
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
- name: 馃彈 Install dependencies
run: poetry install --no-interaction
run: uv sync --frozen --no-progress
- name: 馃彈 Set package version
run: |
version="${{ github.event.release.tag_name }}"
version="${version,,}"
version="${version#v}"
poetry version --no-interaction "${version}"
uv version --frozen "${version}"
- name: 馃彈 Build package
run: poetry build --no-interaction
run: uv build
- name: 馃殌 Publish to PyPi
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
with:
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,14 @@ jobs:
steps:
- name: 猡碉笍 Check out code from GitHub
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: 馃彈 Set up Poetry
run: pipx install poetry
- name: 馃彈 Set up Python ${{ matrix.python }}
id: python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
- name: 馃彈 Set up UV
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
python-version: ${{ matrix.python }}
cache: "poetry"
- name: 馃彈 Install workflow dependencies
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
- name: 馃彈 Install dependencies
run: poetry install --no-interaction
run: uv sync --frozen --no-progress
- name: 馃殌 Run pytest
run: poetry run pytest --cov PyViCare
run: uv run --frozen pytest --cov PyViCare
- name: 猬嗭笍 Upload coverage artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/type.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,11 @@ jobs:
steps:
- name: 猡碉笍 Check out code from GitHub
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: 馃彈 Set up Poetry
run: pipx install poetry
- name: 馃彈 Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
- name: 馃彈 Set up UV
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
cache: "poetry"
- name: 馃彈 Install workflow dependencies
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
- name: 馃彈 Install dependencies
run: poetry install --no-interaction
run: uv sync --frozen --no-progress
- name: 馃殌 Run mypy
run: poetry run mypy PyViCare tests
run: uv run --frozen mypy PyViCare/ tests/
Loading
Loading