-
Notifications
You must be signed in to change notification settings - Fork 21
36 lines (34 loc) · 852 Bytes
/
clear-and-lint.yml
File metadata and controls
36 lines (34 loc) · 852 Bytes
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
36
name: check cleared outputs, format and lint
on:
pull_request:
types:
- opened
- reopened
- synchronize
branches:
- main
jobs:
check_cleared_outputs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: ensure cleared outputs
uses: ResearchSoftwareActions/EnsureCleanNotebooksAction@1.1
format:
needs: check_cleared_outputs
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: "3.9.7"
- name: install pipenv
run: pip install pipenv
- name: install dependencies
run: pipenv sync --dev
- name: format
run: pipenv run check_formatting