From 4d52b3442253930d2856e387584596b2a28b7bd2 Mon Sep 17 00:00:00 2001 From: Florian Bach Date: Sun, 3 Sep 2023 15:17:20 +0200 Subject: [PATCH] Update tests again --- .github/workflows/main.yml | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 75f72f8..8f62ba1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,35 +29,21 @@ jobs: calibre-plugin.zip calibre-migration-plugin.zip - test-python3: + test-python-versions: runs-on: ubuntu-20.04 + container: python:${{ matrix.python-version }} strategy: matrix: - python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"] - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Install python requirements - run: pip install -r ./.github/workflows/ci_test_requirements.txt - - name: Run tests - run: | - cd tests && python --version && PYTHONWARNINGS=ignore python ./main.py - - test-python2: - runs-on: ubuntu-20.04 - container: python:2.7 + python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12-rc"] steps: - uses: actions/checkout@v3 - name: Install python requirements run: pip install -r ./.github/workflows/ci_test_requirements.txt + - name: Run tests run: | - cd tests && python --version && PYTHONWARNINGS=ignore python ./main.py - + cd tests && python --version && PYTHONWARNINGS=ignore python ./main.py test-ubuntu-2004: runs-on: ubuntu-20.04