From ad110498a6af60a0a6324d1ab8eaf43c287c44aa Mon Sep 17 00:00:00 2001 From: MattHag <16444067+MattHag@users.noreply.github.com> Date: Sun, 18 Feb 2024 14:30:31 +0100 Subject: [PATCH] dist: Fix deprecated GitHub actions * Show pytest coverage in GitHub CI tests Related #1097 * Extend Makefile with installation and test targets Refactor setup steps to unify commands between Linux and macOS. Move bash commands into Makefile for consistency and enable local execution of GitHub CI commands corresponding Makefile targets. Install on Ubuntu: make install_ubuntu Install on Ubuntu for development: make install_ubuntu PIP_ARGS=."[test]" Fixes #2303 * Improve name of GitHub test actions Related #2303 * Upgrade GitHub actions to Node.js 20 Replaces deprecated Node.js 16 actions. Related #2256, #2284 --- .github/workflows/checks.yml | 6 +++--- .github/workflows/tests.yml | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 960ef7ab..6dfc1c93 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -7,10 +7,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - name: Setup Python - uses: actions/setup-python@v4.3.0 + - name: Set up Python + uses: actions/setup-python@v5 - name: Run pre-commit uses: pre-commit/action@v3.0.0 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index de4afb73..230881bc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,10 +11,11 @@ jobs: python-version: [3.7, 3.12] steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4.3.0 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -38,11 +39,11 @@ jobs: python-version: [3.7, 3.12] steps: - - name: Checkout code - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4.3.0 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }}