From c91d6959b17f8a37a92b944051aca297ecd30cac Mon Sep 17 00:00:00 2001 From: lorenzo Date: Mon, 23 Sep 2024 17:15:33 +0200 Subject: [PATCH] refactor ci --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++ .github/workflows/v3_ci.yml | 40 ------------------------------------- 2 files changed, 24 insertions(+), 40 deletions(-) delete mode 100644 .github/workflows/v3_ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51de1d9..2408bd1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,6 +78,30 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: /home/runner/work/ngio/ngio/coverage.xml + zarrv3: + name: Test zarr-python v3 compatibility + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: ๐Ÿ Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + cache-dependency-path: "pyproject.toml" + cache: "pip" + + - name: Install Dependencies + run: | + python -m pip install -U pip + # if running a cron job, we add the --pre flag to test against pre-releases + python -m pip install .[dev3] ${{ github.event_name == 'schedule' && '--pre' || '' }} + + - name: ๐Ÿงช Run Tests + run: pytest + continue-on-error: true + deploy: name: Deploy needs: test diff --git a/.github/workflows/v3_ci.yml b/.github/workflows/v3_ci.yml deleted file mode 100644 index c7db238..0000000 --- a/.github/workflows/v3_ci.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: ZarrV3 CI - -on: - push: - branches: - - main - tags: - - "v*" - pull_request: - workflow_dispatch: - -# cancel in-progress runs that use the same workflow and branch -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - - test: - name: Test zarr-python v3 compatibility - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: ๐Ÿ Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.11" - cache-dependency-path: "pyproject.toml" - cache: "pip" - - - name: Install Dependencies - run: | - python -m pip install -U pip - # if running a cron job, we add the --pre flag to test against pre-releases - python -m pip install .[dev3] ${{ github.event_name == 'schedule' && '--pre' || '' }} - - - name: ๐Ÿงช Run Tests - run: pytest