From 8b4ac05071bb52fee89dc13429c8341164155445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Fundakowski?= <22340156+fundakol@users.noreply.github.com> Date: Mon, 3 Jun 2024 10:08:53 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index add1630..86b3fbe 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,7 @@ jobs: needs: lint strategy: matrix: - name: [ "3.7", "3.8", "3.9", "3.10", "3.11" ] + name: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12" ] include: - name: "3.7" python: "3.7" @@ -33,8 +33,11 @@ jobs: - name: "3.11" python: "3.11" tox_env: "py311" + - name: "3.12" + python: "3.12" + tox_env: "py312" steps: - - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 - name: Setup Python ${{ matrix.python }} uses: actions/setup-python@v4 with: @@ -52,7 +55,9 @@ jobs: run: python -m coverage xml - name: Upload coverage to Codecov if: "matrix.use_coverage" - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: fail_ci_if_error: true files: ./coverage.xml @@ -62,12 +67,12 @@ jobs: runs-on: ubuntu-latest name: flake8 steps: - - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 - name: Setup Python uses: actions/setup-python@v4 with: python-version: "3.9" - name: Install packages run: pip install tox - - name: Run tests + - name: Run linter run: tox -e flake8