Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
ci: use actions to install Python 3.11 and Poetry
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Miller <me@dje.li>
  • Loading branch information
Djelibeybi committed Sep 14, 2023
1 parent 973db50 commit 6f9b869
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
python-version: "${{ matrix.python-version }}"
- uses: snok/install-poetry@v1.3.4
- name: Install Dependencies
run: poetry install --with=test --without=dev --without=hass
Expand All @@ -89,6 +89,12 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-python@v4
with:
python-version: "3.11"

- uses: snok/install-poetry@v1.3.4

# This action uses Python Semantic Release v8
- name: Python Semantic Release
id: release
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ homeassistant = "^2023.0.0"
branch = "main"
version_toml = ["pyproject.toml:tool.poetry.version"]
version_variables = ["src/aiosoma/__init__.py:__version__"]
build_command = "pip install poetry && poetry build"
build_command = "poetry build"

[tool.pytest.ini_options]
addopts = "-v -Wdefault --cov=aiosoma --cov-report=term-missing:skip-covered --ignore src/aiosoma/__cli__.py"
Expand Down

0 comments on commit 6f9b869

Please sign in to comment.