summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2022-11-25 12:38:08 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2022-11-25 12:38:08 -0500
commitdcbc0f0726f8c2a5c8b3f5edf7fe5cf30c2495ac (patch)
tree7430d9341ece45900b382fcb6ab346cbc7f1c505 /.github/workflows
parentAdd 3.12.0-alpha.2 to CI runs (diff)
downloadlirc-dcbc0f0726f8c2a5c8b3f5edf7fe5cf30c2495ac.zip
Specify poetry version per python version and add poetry cache
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/python-package-ci.yml24
1 files changed, 17 insertions, 7 deletions
diff --git a/.github/workflows/python-package-ci.yml b/.github/workflows/python-package-ci.yml
index 7d2a77b..ecc1e5c 100644
--- a/.github/workflows/python-package-ci.yml
+++ b/.github/workflows/python-package-ci.yml
@@ -7,25 +7,35 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- python-version: [3.6, 3.7, 3.8, 3.9, '3.10', '3.11', '3.12.0-alpha.2']
+ versions: [
+ {python: '3.6', poetry: '1.1.15'},
+ {python: '3.7', poetry: '1.2.2'},
+ {python: '3.8', poetry: '1.2.2'},
+ {python: '3.9', poetry: '1.2.2'},
+ {python: '3.10', poetry: '1.2.2'},
+ {python: '3.11', poetry: '1.2.2'},
+ {python: '3.12.0-alpha.2', poetry: '1.2.2'},
+ ]
steps:
- uses: actions/checkout@v3
- - name: Set up Python ${{ matrix.python-version }}
+ - name: Set up Poetry
+ run: pipx install poetry ${{ matrix.versions.poetry }}
+
+ - name: Set up Python ${{ matrix.versions.python }}
uses: actions/setup-python@v4
with:
- python-version: ${{ matrix.python-version }}
+ python-version: ${{ matrix.versions.python }}
+ cache: 'poetry'
- - name: Install dependencies
+ - name: Install Dependencies
run: |
- pip install poetry
poetry install -v
poetry run pip install -r requirements-311.txt
- name: Install system LIRC
- run: |
- sudo apt-get install lirc
+ run: sudo apt-get install lirc
- name: Run tests
run: poetry run pytest -v tests/ --cov=lirc/ --cov-report=xml