Skip to content

Commit

Permalink
ci/default-shell: bash
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Dec 24, 2022
1 parent 79ec5f6 commit c16b888
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/check-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ on:
required: false
type: string

defaults:
run:
shell: bash

jobs:

mypy:
runs-on: ubuntu-20.04
steps:
Expand Down Expand Up @@ -53,6 +58,7 @@ jobs:
# https://mypy.readthedocs.io/en/stable/config_file.html
run: mypy


pre-commit:
runs-on: ubuntu-20.04
steps:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/check-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ on:
required: false
type: string

defaults:
run:
shell: bash

jobs:

docs-test:
Expand Down Expand Up @@ -58,6 +62,7 @@ jobs:
make doctest
make coverage
docs-html:
runs-on: ubuntu-20.04

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
name: ${{ inputs.artifact-name }}
path: dist


pkg-build:
needs: init-store
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -99,6 +100,7 @@ jobs:
name: ${{ inputs.artifact-name }}
path: pypi


pkg-check:
needs: pkg-build
runs-on: ${{ matrix.os }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/check-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ on:
required: false
type: string

defaults:
run:
shell: bash

jobs:

schema:
runs-on: ubuntu-20.04
steps:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/ci-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,21 @@ on:
pull_request:
branches: [main, "release/*"]

defaults:
run:
shell: bash

jobs:
pytest:

pytest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-12, windows-2022]
python-version: ["3.7", "3.10"]
requires: ['oldest', 'latest']

timeout-minutes: 35

steps:
- name: Checkout 🛎
uses: actions/checkout@v3
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/clear-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ on:
required: true
type: string

defaults:
run:
shell: bash

jobs:
clear-cache:
runs-on: ubuntu-latest

steps:
- name: Get the list of cache keys
env:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/cron-clear-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ on:
# on Sundays
- cron: "0 0 * * 0"

defaults:
run:
shell: bash

jobs:

clear-cache:
if: ${{ github.repository_owner == 'Lightning-AI' }}
uses: ./.github/workflows/clear-cache.yml
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ on:
push:
branches: [main]

defaults:
run:
shell: bash

jobs:

# https://github.com/marketplace/actions/deploy-to-github-pages
build-docs-deploy:
runs-on: ubuntu-20.04
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on: # Trigger the workflow on push or pull request, but only for the master bra
tags:
- 'v?[0-9]+.[0-9]+.[0-9]+'

defaults:
run:
shell: bash

jobs:
# based on https://github.com/pypa/gh-action-pypi-publish
build-package:
Expand Down Expand Up @@ -34,6 +38,7 @@ jobs:
name: pypi-packages-${{ github.sha }}
path: dist


upload-package:
timeout-minutes: 5
runs-on: ubuntu-20.04
Expand All @@ -56,6 +61,7 @@ jobs:
files: 'dist/*'
repo-token: ${{ secrets.GITHUB_TOKEN }}


publish-package:
runs-on: ubuntu-20.04
timeout-minutes: 10
Expand Down

0 comments on commit c16b888

Please sign in to comment.