From 11d33c0dbfd17916309113e72a3c84ae71d84f43 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 7 Aug 2022 23:01:11 +0200 Subject: [PATCH 1/2] Upgrade GitHub Actions --- .github/workflows/tests.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0325cd9d..098f2cd5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,7 +31,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 @@ -45,19 +45,19 @@ jobs: python -m pytest --cov traitlets --cov-report=xml -v traitlets - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 test_miniumum_verisons: name: Test Minimum Versions runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Base Setup uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 with: python_version: "3.7" - - name: Install miniumum versions + - name: Install minimum versions uses: jupyterlab/maintainer-tools/.github/actions/install-minimums@v1 - name: Run the unit tests run: pytest -vv -W default traitlets || pytest -vv -W default traitlets --lf @@ -68,7 +68,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Base Setup uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 - name: Install the Python dependencies @@ -87,7 +87,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 - uses: jupyterlab/maintainer-tools/.github/actions/make-sdist@v1 @@ -104,9 +104,11 @@ jobs: name: pre-commit runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - uses: pre-commit/action@v2.0.0 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: 3.x + - uses: pre-commit/action@v3 with: extra_args: --all-files --hook-stage=manual - name: Help message if pre-commit fail From 7750d978aa93076123a81a88f0282f614b97f9a7 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 7 Aug 2022 23:05:37 +0200 Subject: [PATCH 2/2] Update tests.yml --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 098f2cd5..bfe483d2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -108,7 +108,7 @@ jobs: - uses: actions/setup-python@v4 with: python-version: 3.x - - uses: pre-commit/action@v3 + - uses: pre-commit/action@v2.0.0 with: extra_args: --all-files --hook-stage=manual - name: Help message if pre-commit fail