Skip to content

Commit

Permalink
Remove Poetry from GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dostuffthatmatters committed Jan 18, 2024
1 parent fd3f807 commit 6eec702
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,40 +20,23 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.8", "3.9", "3.10", "3.11"]
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
defaults:
run:
shell: bash

steps:
# check-out repo and install python
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
cache: pip

# load cache if available
- name: Load cached venv
id: cached-venv
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ matrix.python_version }}-${{ hashFiles('poetry.lock') }}

# install poetry if venv not in cache
- name: Install Poetry
if: steps.cached-venv.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
with:
version: 1.6.1
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install dependencies
if: steps.cached-venv.outputs.cache-hit != 'true'
run: poetry install --with=dev
run: pip install ".[dev]"

# Install mosquitto dependencies
- name: Install mosquitto dependencies
Expand Down

0 comments on commit 6eec702

Please sign in to comment.