From b78f3c1faf6d0384847746292d5bd92e17140cb2 Mon Sep 17 00:00:00 2001 From: Matthieu Monsch Date: Tue, 25 Jun 2024 11:03:43 +0200 Subject: [PATCH] build: omit Cloud API steps from CI --- .github/workflows/cd.yml | 13 +++++++++---- .github/workflows/check-compatibility.yml | 17 ----------------- 2 files changed, 9 insertions(+), 21 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 395e1c7..d3a4592 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -17,12 +17,17 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.10' - - name: Install dependencies + - name: Install Python dependencies run: python -m pip install -r requirements.txt - - name: Check + - name: Set up API server + uses: opvious/api-server-action@v0.2.0 + with: + license-key: ${{ secrets.OPVIOUS_LICENSE_KEY }} + - name: Check compatibility run: ./scripts/check-compatibility.sh - env: - OPVIOUS_TOKEN: ${{ secrets.OPVIOUS_TOKEN }} + - name: Show API logs + if: failure() + run: opvious api logs deploy-jupyterlite-site: name: Deploy JupyterLite site timeout-minutes: 3 diff --git a/.github/workflows/check-compatibility.yml b/.github/workflows/check-compatibility.yml index e4fab1a..e6767ea 100644 --- a/.github/workflows/check-compatibility.yml +++ b/.github/workflows/check-compatibility.yml @@ -14,23 +14,6 @@ on: - cron: '5 */8 * * *' workflow_dispatch: {} jobs: - cloud-api: - name: Cloud API - timeout-minutes: 3 - runs-on: ubuntu-latest - steps: - - name: Check out - uses: actions/checkout@v4 - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: '3.10' - - name: Install dependencies - run: python -m pip install -r requirements.txt - - name: Check compatibility - run: ./scripts/check-compatibility.sh - env: - OPVIOUS_TOKEN: ${{ secrets.OPVIOUS_TOKEN }} image-api: name: Image API timeout-minutes: 5