From e365e736ee3e3ce308cc4a91b40351c49d2d847e Mon Sep 17 00:00:00 2001 From: Simon Holesch Date: Fri, 5 Apr 2024 02:18:53 +0200 Subject: [PATCH] CI: Test with all supported python versions --- .github/workflows/on-push.yml | 7 +++++-- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index 45848ff..442089a 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -24,12 +24,15 @@ jobs: run: git ls-files -z | xargs -0 -- codespell test: runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 - - name: Set up Python + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 with: - python-version: 3.11 + python-version: ${{ matrix.python-version }} - name: Create test VM image run: sudo ./scripts/vmctl makeimg - name: Install dependencies diff --git a/pyproject.toml b/pyproject.toml index bdb6a88..3e0dace 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,11 +17,11 @@ classifiers = [ "License :: OSI Approved :: MIT License", "Operating System :: POSIX :: Linux", "Programming Language :: Python", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Software Development :: Embedded Systems", "Topic :: Software Development :: Testing", ]