From 618c493ddf14f47871051fda8bcc6fe8e6443df6 Mon Sep 17 00:00:00 2001 From: Ronan Boiteau Date: Thu, 18 Apr 2024 03:55:06 +0300 Subject: [PATCH] Compatibility GitHub Actions / tox --- .github/workflows/build.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 429780b..afaf70f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,11 +6,20 @@ on: [push] jobs: run_tests: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} - name: Set up Python uses: actions/setup-python@v4 - name: Install tox run: pip install tox - name: Use tox to run test suite - run: tox run + run: python -m tox -f py$(echo ${{ matrix.python-version }} | tr -d .)