Skip to content

Commit

Permalink
tweak actions
Browse files Browse the repository at this point in the history
  • Loading branch information
David Bonnes committed Sep 10, 2024
1 parent 5c4501d commit 3b49caf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ jobs:
python-version: ["3.12"]

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5.1.0
uses: actions/setup-python@v5.1
with:
python-version: ${{ matrix.python-version }}
check-latest: true

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
pip install ruff # pip install -r requirements_dev.txt
- name: Check with ruff
run: ruff check --output-format=github .
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/check-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,17 @@ jobs:
python-version: ["3.12", "3.13.0-rc.1"]

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5.1.0
uses: actions/setup-python@v5.1
with:
python-version: ${{ matrix.python-version }}
check-latest: true

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_cli.txt # uses TokenManager (aiofiles)
pip install -r requirements_dev.txt
- name: Install the package
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/check-type.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,17 @@ jobs:
python-version: ["3.12"]

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5.1.0
uses: actions/setup-python@v5.1
with:
python-version: ${{ matrix.python-version }}
check-latest: true

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_cli.txt
pip install -r requirements_dev.txt
- name: Check with mypy
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package to PyPI

on:
Expand All @@ -17,7 +12,6 @@ permissions:

jobs:
build-and-deploy:

runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# library requirements (dependencies) are in pyproject.toml
# - pip list | grep -E 'evohome|aiohttp|voluptuous'

-e .
# -e .


# also required if using the the library via the CLI, client.py
Expand Down

0 comments on commit 3b49caf

Please sign in to comment.