From 4d7946e489c9b68bac1fb5bee1e0a139d6dbf9c0 Mon Sep 17 00:00:00 2001 From: "blacksmith-sh[bot]" <157653362+blacksmith-sh[bot]@users.noreply.github.com> Date: Fri, 13 Sep 2024 00:43:21 +0300 Subject: [PATCH] Migrate workflows to Blacksmith (#2112) Co-authored-by: blacksmith-sh[bot] <157653362+blacksmith-sh[bot]@users.noreply.github.com> --- .github/workflows/ci.yaml | 12 ++++++------ .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/semgrep.yml | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8692461a..c4d4e306 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,7 +3,7 @@ on: [pull_request, push] jobs: #################### Unittests #################### unittest: - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 strategy: matrix: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} id: python - uses: actions/setup-python@v5 + uses: useblacksmith/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -24,7 +24,7 @@ jobs: #################### Integration tests #################### integration: needs: [unittest] - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 continue-on-error: ${{ matrix.experimental }} strategy: fail-fast: false @@ -41,7 +41,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} id: python - uses: actions/setup-python@v5 + uses: useblacksmith/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -60,7 +60,7 @@ jobs: #################### Linters and checkers #################### lint: needs: [unittest, integration] - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 strategy: matrix: python-version: ["3.10"] @@ -71,7 +71,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} id: python - uses: actions/setup-python@v5 + uses: useblacksmith/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 11d37e28..a19a2a5d 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -21,7 +21,7 @@ on: jobs: analyze: name: Analyze - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 permissions: actions: read contents: read diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index bcd300a7..3141455d 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -13,7 +13,7 @@ name: Semgrep jobs: semgrep: name: Scan - runs-on: ubuntu-20.04 + runs-on: blacksmith-4vcpu-ubuntu-2204 env: SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} container: