From be6704e44354a61e33d76a3e5d9ffdd592aa62e8 Mon Sep 17 00:00:00 2001 From: tjlane Date: Mon, 28 Oct 2024 19:49:15 +0100 Subject: [PATCH] try this --- .github/workflows/ci.yml | 46 ++++++---------------------------------- 1 file changed, 7 insertions(+), 39 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8bfa0fd..4bcb169 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,54 +1,22 @@ -name: CI +name: CICD on: push: branches: - - main + - master tags: - "v*" pull_request: {} + workflow_run: + workflows: ["tests"] + branches: [master] + types: + - completed workflow_dispatch: jobs: - - test: - name: ${{ matrix.platform }} (${{ matrix.python-version }}) - runs-on: ${{ matrix.platform }} - strategy: - fail-fast: false - matrix: - python-version: ['3.11'] - platform: [ubuntu-latest] - - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.12.1 - with: - access_token: ${{ github.token }} - - - uses: actions/checkout@v4 - with: - lfs: true - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install -U pip - python -m pip install -e '.[tests]' - - - name: Test - run: pytest --color=yes --cov --cov-report=xml --cov-report=term-missing - - - name: Coverage - uses: codecov/codecov-action@v4 - deploy: name: Deploy - needs: test - if: "success() && startsWith(github.ref, 'refs/tags/')" runs-on: ubuntu-latest steps: