forked from aiidateam/aiida-core
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (29 loc) · 883 Bytes
/
ci-style.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
36
37
38
name: continuous-integration-style
on:
push:
branches-ignore: [gh-pages]
pull_request:
branches-ignore: [gh-pages]
jobs:
pre-commit:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install system dependencies
# note libkrb5-dev is required as a dependency for the gssapi pip install
run: |
sudo apt update
sudo apt install libkrb5-dev ruby ruby-dev
- name: Install python dependencies
run: |
pip install --upgrade pip
pip install -r requirements/requirements-py-3.10.txt
pip install -e .[pre-commit]
pip freeze
- name: Run pre-commit
run: pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )