Skip to content

use rapids infra to run testing (#1216) #589

use rapids infra to run testing (#1216)

use rapids infra to run testing (#1216) #589

Workflow file for this run

name: linting
on:
pull_request:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.8"
cache: "pip"
cache-dependency-path: "**/**.txt"
- name: Install black Jupyter
run: |
pip install black[jupyter]==22.3.0
- name: Remove Notebook Output
run: |
pip install nbstripout
find . -type f -name "*.ipynb" -exec nbstripout "{}" +
- uses: pre-commit/[email protected]
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check workflow files
run: |
echo "::add-matcher::.github/actionlint-matcher.json"
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/fd7ba3c382e13dcc0248e425b4cbc3f1185fa3ee/scripts/download-actionlint.bash)
./actionlint
shell: bash