From bb75e15b2d77917bc2b081c3b8660bf5db93bd06 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Fri, 14 Apr 2023 12:56:10 +0100 Subject: [PATCH] Upgrade GitHub actions #nolog --- .github/workflows/tests.yml | 27 +++++++++++++++------------ tox.ini | 2 +- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dd516bf..e6977c9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,8 +11,8 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 - run: python -m pip install --upgrade pip wheel - run: pip install tox tox-gh-actions - run: tox -eflake8 @@ -25,8 +25,8 @@ jobs: fail-fast: false runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 with: python-version: ${{ matrix.python }} - run: python -m pip install --upgrade pip wheel @@ -36,8 +36,8 @@ jobs: name: tests-micropython runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 - run: python -m pip install --upgrade pip wheel - run: pip install tox tox-gh-actions - run: tox -eupy @@ -45,18 +45,21 @@ jobs: name: coverage runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 - run: python -m pip install --upgrade pip wheel - - run: pip install tox tox-gh-actions codecov + - run: pip install tox tox-gh-actions - run: tox - - run: codecov + - uses: codecov/codecov-action@v3 + with: + files: ./coverage.xml + fail_ci_if_error: true benchmark: name: benchmark runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 - run: python -m pip install --upgrade pip wheel - run: pip install tox tox-gh-actions - run: tox -ebenchmark diff --git a/tox.ini b/tox.ini index 2285abf..c85300e 100644 --- a/tox.ini +++ b/tox.ini @@ -15,7 +15,7 @@ python = [testenv] commands= pip install -e . - pytest -p no:logging --cov=src --cov-config=.coveragerc --cov-branch --cov-report=term-missing + pytest -p no:logging --cov=src --cov-config=.coveragerc --cov-branch --cov-report=term-missing --cov-report=xml deps= pytest pytest-cov