Skip to content

Commit

Permalink
tidy up actions
Browse files Browse the repository at this point in the history
  • Loading branch information
David Bonnes committed Sep 10, 2024
1 parent 3878a95 commit 7ab54e0
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- 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
3 changes: 1 addition & 2 deletions .github/workflows/check-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-asyncio pytest-sugar pytest-xdist PyYAML
pip install -r requirements_dev.txt
- name: Install the package
run: pip install -e .
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/check-type.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_dev.txt
- name: Check with mypy
run: mypy
run: mypy --enable-incomplete-feature=NewGenericSyntax

- run: echo "🍏 This job's status is ${{ job.status }}."
3 changes: 1 addition & 2 deletions .github/workflows/publish-hatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ permissions:

jobs:
build-and-deploy:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
Expand All @@ -31,7 +31,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Build package
run: python -m build
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
#

# library requirements (dependencies) are in pyproject.toml
# - check: pip list | grep -E 'ramses|colorlog|paho-mqtt|pyserial|voluptuous'
# - pip list | grep -E 'ramses|colorlog|paho-mqtt|pyserial|voluptuous'

-e .
# -e .


# also required if using the the library via the CLI, client.py
# - check via: pip list | grep -E 'click|colorama|debugpy'
# - pip list | grep -E 'click|colorama|debugpy'

click >= 8.1.7 # NOTE: non-async version
colorama >= 0.4.6
Expand Down
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

# used for development (linting)
pre-commit >= 3.8.0
ruff >= 0.6.4 # also: pre-commit-config.yaml
ruff >= 0.6.4 # also: check-lint.yml, pre-commit-config.yaml

# used for development (typing)
mypy >= 1.11.1
Expand Down

0 comments on commit 7ab54e0

Please sign in to comment.