Skip to content

Commit cde2a10

Browse files
authored
separate build and checks in ci, update pre-commit (#415)
1 parent 2fce48e commit cde2a10

File tree

2 files changed

+13
-23
lines changed

2 files changed

+13
-23
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,24 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v2
1212
- uses: actions/setup-python@v2
13-
with:
14-
python-verson: '3.10'
1513
- name: Install prerequisites
1614
run: |
1715
sudo apt-get update -qq
1816
xargs -a ubuntu-packages.txt sudo apt install -qq
1917
python -m pip install --quiet --upgrade pip
2018
pip install --quiet -r requirements.txt
21-
- name: Builds and checks
19+
- name: Checks
2220
run: |
23-
ONEAPI_DRAFT=true pre-commit run --all
21+
pre-commit run --all
2422
mkdir -p build/reuse
2523
# ignore fail for reuse
2624
reuse lint > build/reuse/lint.txt || true
25+
- name: Build
26+
env:
27+
ONEAPI_DRAFT: true
28+
run: |
29+
python scripts/oneapi.py -W html
30+
python scripts/oneapi.py -W latexpdf
2731
- name: Archive build directory
2832
uses: actions/upload-artifact@v1
2933
with:

.pre-commit-config.yaml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,43 +9,29 @@ exclude: LICENSES|source/elements
99

1010
repos:
1111
- repo: https://github.com/ambv/black
12-
rev: 21.6b0
12+
rev: 22.3.0
1313
hooks:
1414
- id: black
1515
- repo: https://github.com/pre-commit/pre-commit-hooks
16-
rev: v4.0.1
16+
rev: v4.1.0
1717
hooks:
1818
- id: trailing-whitespace
1919
- id: end-of-file-fixer
2020
- id: check-yaml
2121
- id: check-added-large-files
2222
- repo: https://github.com/pycqa/doc8
23-
rev: 0.9.0a1
23+
rev: 0.10.1
2424
hooks:
2525
- id: doc8
2626
- repo: https://github.com/fsfe/reuse-tool
27-
rev: v0.13.0
27+
rev: v0.14.0
2828
hooks:
2929
- id: reuse
3030
- repo: https://gitlab.com/pycqa/flake8
3131
rev: 3.9.2
3232
hooks:
3333
- id: flake8
3434
- repo: https://github.com/pycqa/isort
35-
rev: 5.9.1
35+
rev: 5.10.1
3636
hooks:
3737
- id: isort
38-
- repo: local
39-
hooks:
40-
- id: sphinx-html
41-
name: sphinx-html
42-
entry: python scripts/oneapi.py -W html
43-
language: system
44-
pass_filenames: false
45-
always_run: true
46-
- id: sphinx-pdf
47-
name: sphinx-pdf
48-
entry: python scripts/oneapi.py -W latexpdf
49-
language: system
50-
pass_filenames: false
51-
always_run: true

0 commit comments

Comments
 (0)