Skip to content

Commit

Permalink
Merge pull request #113 from apriha/hotfix/ci-updates
Browse files Browse the repository at this point in the history
CI updates
  • Loading branch information
apriha authored Mar 20, 2024
2 parents ba62d80 + a623df5 commit e90058a
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,22 @@ on:
schedule:
- cron: '37 3 * * 0'
push:
branches: '**'
branches:
- '**'
pull_request:
branches: '**'
branches:
- '**'

jobs:
enable-workflow:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' || (github.event_name == 'schedule' && github.repository == 'apriha/lineage') }}
steps:
- name: Enable workflow based on preconditions
run: echo "Workflow enabled."

lint:
needs: [enable-workflow]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -31,6 +41,7 @@ jobs:
black --check --diff .
build-docs:
needs: [enable-workflow]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -103,7 +114,8 @@ jobs:
working-directory: C:\a\lineage\lineage
run: |
pytest --cov=lineage tests
- name: Upload coverage to Codecov
- name: Upload coverage to Codecov (Ubuntu & macOS)
if: ${{ matrix.os != 'windows-latest' }}
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit e90058a

Please sign in to comment.