From 4468bcc6579402904763ffa74b4ab0e41a1cd316 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Mon, 7 Mar 2022 10:56:31 +0100 Subject: [PATCH] Bumped versions in Github actions configuration to v3. --- .github/workflows/docs.yml | 15 ++++++--------- .github/workflows/linters.yml | 10 +++++----- .github/workflows/tests.yml | 17 ++++++----------- 3 files changed, 17 insertions(+), 25 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 898f20578d..f2d4a8de37 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -4,11 +4,13 @@ on: pull_request: paths: - 'docs/**' + - '.github/workflows/docs.yml' push: branches: - main paths: - 'docs/**' + - '.github/workflows/docs.yml' jobs: docs: @@ -17,18 +19,13 @@ jobs: name: docs steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: '3.10' - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + cache: 'pip' + cache-dependency-path: 'docs/requirements.txt' - run: python -m pip install -r docs/requirements.txt - name: Build docs run: | diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 3969b34cc5..df76b3f71b 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -16,9 +16,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: '3.10' - run: python -m pip install flake8 @@ -32,9 +32,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: '3.10' - run: python -m pip install isort @@ -48,6 +48,6 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: black uses: psf/black@stable diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8dd0380cdf..93140c0129 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,9 +20,9 @@ jobs: name: Windows, SQLite, Python ${{ matrix.python-version }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} cache: 'pip' @@ -36,17 +36,12 @@ jobs: name: JavaScript tests steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: '12' - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ runner.os }}-node- + cache: 'npm' + cache-dependency-path: '**/package.json' - run: npm install - run: npm test