diff --git a/.github/actions/setup-pnpm/action.yml b/.github/actions/setup-pnpm/action.yml index 9af5116d..07abb905 100644 --- a/.github/actions/setup-pnpm/action.yml +++ b/.github/actions/setup-pnpm/action.yml @@ -18,7 +18,7 @@ runs: with: version: ${{ inputs.pnpm-version }} - name: Set up Node.js ${{ inputs.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ inputs.node-version }} cache: pnpm diff --git a/.github/actions/setup-poetry/action.yml b/.github/actions/setup-poetry/action.yml index c3264722..bdd60d6b 100644 --- a/.github/actions/setup-poetry/action.yml +++ b/.github/actions/setup-poetry/action.yml @@ -27,13 +27,13 @@ runs: - name: Set up Python ${{ inputs.python-version }} with cache id: setup-python-with-cache if: inputs.install-dependencies != 'false' - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ inputs.python-version }} cache: poetry - name: Set up Python ${{ inputs.python-version }} if: inputs.install-dependencies == 'false' - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ inputs.python-version }} - name: Install dependencies diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dff182c1..02f5fb46 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: '🐍 Set up Poetry environment' @@ -36,7 +36,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: '⬢ Set up pnpm environment' @@ -51,7 +51,7 @@ jobs: steps: - name: '🔍 Check if pull request' id: check-pr - uses: 8BitJonny/gh-get-current-pr@2.2.0 + uses: 8BitJonny/gh-get-current-pr@3.0.0 with: filterOutClosed: true outputs: @@ -65,7 +65,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: '🐍 Set up Poetry environment' @@ -75,7 +75,7 @@ jobs: uses: ./.github/actions/setup-pnpm - name: Run shellcheck if: success() || steps.setup.outcome == 'success' - uses: ludeeus/action-shellcheck@master + uses: ludeeus/action-shellcheck@2.0.0 with: ignore_paths: .venv node_modules - name: Audit dependencies @@ -100,7 +100,7 @@ jobs: # action, so use it as check. steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: '🧱 Build test matrix for pull request' if: needs.check-pr.outputs.is-pr == 'true' uses: druzsan/setup-matrix@v1 @@ -146,7 +146,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: '🐍 Set up Poetry environment' @@ -154,7 +154,7 @@ jobs: - name: '📝 Build API docs' run: make docs - name: '📥 Store API docs' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: docs-${{ needs.prepare-python.outputs.version }} path: build/docs/api/ @@ -166,7 +166,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: '🐍 Set up Poetry environment' @@ -178,7 +178,7 @@ jobs: if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') run: make all-datasets - name: '📥 Store datasets' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: datasets-${{ needs.prepare-python.outputs.version }} path: build/datasets/ @@ -191,7 +191,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: '🐍 Set up Poetry' @@ -203,7 +203,7 @@ jobs: - name: '🧱 Build frontend' run: make build-frontend - name: '📥 Store frontend' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: .frontend-${{ needs.prepare-python.outputs.version }} path: build/frontend/ @@ -211,7 +211,7 @@ jobs: - name: Build Spotlight run: make build-wheel - name: '📥 Store Spotlight' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: renumics-spotlight-${{ needs.prepare-python.outputs.version }} path: build/dist/renumics_spotlight*.whl @@ -225,13 +225,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: '🐍 Set up Poetry environment' uses: ./.github/actions/setup-poetry - name: '📤 Restore Spotlight Wheel' - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: renumics-spotlight-${{ needs.prepare-python.outputs.version }} path: build/dist @@ -245,7 +245,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: '🐍 Set up Poetry environment' @@ -262,7 +262,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: '🐍 Set up Poetry environment' @@ -286,18 +286,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: '🐍 Set up Poetry environment' uses: ./.github/actions/setup-poetry - name: '📤 Restore datasets' - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: datasets-${{ needs.prepare-python.outputs.version }} path: build/datasets/ - name: '📤 Restore frontend' - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: .frontend-${{ needs.prepare-python.outputs.version }} path: build/frontend/ @@ -369,9 +369,9 @@ jobs: success() || steps.setup-chromedriver.outcome == 'success' || steps.setup-geckodriver.outcome == 'success' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: .ui-test-${{ needs.prepare-python.outputs.version }} + name: .ui-test-${{ matrix.browser }}-${{ needs.prepare-python.outputs.version }} path: build/ui_tests if-no-files-found: error integration-test: @@ -387,7 +387,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: '🐍 Set up Poetry' @@ -397,17 +397,17 @@ jobs: python-version: ${{ matrix.python-version }} install-dependencies: false - name: '♻️ Cache pip cache folder' - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.setup-poetry.outputs.pip-cache-dir }} key: pip-cache-${{ runner.os }}-python-${{ matrix.python-version }} - name: '📤 Restore Spotlight' - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: renumics-spotlight-${{ needs.prepare-python.outputs.version }} path: build/dist - name: '📤 Restore datasets' - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: datasets-${{ needs.prepare-python.outputs.version }} path: build/datasets/ @@ -459,11 +459,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: '📤 Restore core Spotlight' - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: renumics-spotlight-${{ needs.prepare-python.outputs.version }} path: dist