-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 946 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Continuous Integration
# always run CI on new commits to any branch
on: push
jobs:
test:
name: ${{ matrix.task }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- task: linting
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.9
- name: linting
if: matrix.task == 'linting'
shell: bash
run: |
pip install --upgrade black flake8 isort nbqa
conda install -c conda-forge shellcheck
make lint
all-successful:
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Note that all tests succeeded
run: echo "🎉"