Skip to content

Commit 34e67b9

Browse files
authored
ssf compliance updates (#516)
disable parallel build, breathe does not support it
1 parent bcc3834 commit 34e67b9

File tree

7 files changed

+112
-37
lines changed

7 files changed

+112
-37
lines changed

Diff for: .github/workflows/ci.yml renamed to .github/workflows/pr.yml

+11-8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
#
33
# SPDX-License-Identifier: MIT
44

5+
name: "PR Tests"
6+
permissions: read-all
7+
58
on:
69
push:
710
branches:
@@ -12,26 +15,26 @@ jobs:
1215
checks:
1316
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-latest' || 'ubuntu-latest' }}
1417
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-python@v4
18+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
19+
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
1720
with:
1821
python-version: '3.10'
1922
cache: 'pip'
2023
- name: Checks
21-
uses: pre-commit/action@v3.0.0
24+
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507
2225

2326
build:
2427
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-latest' || 'ubuntu-latest' }}
2528
steps:
26-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
2730
- name: Install ubuntu prerequisites
2831
run: |
2932
sudo apt update -qq
3033
xargs -a ubuntu-packages.txt sudo apt install -qq
3134
curl -s https://www.doxygen.nl/files/doxygen-1.9.6.linux.bin.tar.gz -o /tmp/dox.tgz
3235
sudo tar zxf /tmp/dox.tgz -C /usr/local
3336
sudo ln -s /usr/local/doxygen*/bin/* /usr/bin
34-
- uses: actions/setup-python@v4
37+
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
3538
with:
3639
python-version: '3.10'
3740
cache: 'pip'
@@ -54,7 +57,7 @@ jobs:
5457
cp -r build/html/* site/spec
5558
cp build/latex/*.pdf site/spec
5659
- name: Archive site
57-
uses: actions/upload-artifact@v3
60+
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8
5861
with:
5962
name: site
6063
path: site
@@ -65,12 +68,12 @@ jobs:
6568
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-latest' || 'ubuntu-latest' }}
6669
steps:
6770
- name: Checkout gh-pages
68-
uses: actions/checkout@v3
71+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
6972
with:
7073
ref: gh-pages
7174
path: gh-pages
7275
- name: Retrieve site
73-
uses: actions/download-artifact@v3
76+
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935
7477
with:
7578
name: site
7679
path: gh-pages

Diff for: README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
oneAPI Specifications
77
=====================
88

9-
.. image:: https://github.com/oneapi-src/oneAPI-spec/actions/workflows/ci.yml/badge.svg
10-
:target: https://github.com/oneapi-src/oneapi-spec/actions?query=workflow%3ACI
9+
.. image:: https://github.com/oneapi-src/oneAPI-spec/actions/workflows/pr.yml/badge.svg
10+
:target: https://github.com/oneapi-src/oneapi-spec/actions/workflows/pr.yml
1111

1212
.. image:: https://api.reuse.software/badge/github.com/oneapi-src/oneapi-spec
1313
:target: https://api.reuse.software/info/github.com/oneapi-src/oneapi-spec

Diff for: docker/Dockerfile

-7
This file was deleted.

Diff for: requirements.base.txt

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# SPDX-FileCopyrightText: 2019-2020 Intel Corporation
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
# This is the minimal set of components required and using the latest
6+
# versions
7+
8+
breathe
9+
graphviz
10+
lxml
11+
pre-commit
12+
six
13+
Sphinx
14+
sphinx-notfound-page
15+
sphinx-book-theme
16+
sphinx-prompt
17+
sphinx_substitution_extensions
18+
sphinx_tabs
19+
sphinxcontrib.plantuml
20+
sphinxcontrib-spelling
21+
sphinxcontrib-svg2pdfconverter
22+
sphinxmark

Diff for: requirements.header.txt

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# SPDX-FileCopyrightText: 2019-2020 Intel Corporation
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
# This file is generated with:
6+
#
7+
# rm -rf venv
8+
# python -m venv venv
9+
# source venv/bin/activate
10+
# pip install -r requirements.base.txt
11+
# cp requirements.header.txt requirements.txt
12+
# pip freeze >> requirements.txt
13+
#
14+
# Add this header, including copyright back
15+
#

Diff for: requirements.txt

+62-17
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,65 @@
22
#
33
# SPDX-License-Identifier: MIT
44

5-
# This is the minimal set of components required and using the latest
6-
# versions
7-
8-
breathe
9-
graphviz
10-
lxml
11-
six
12-
Sphinx
13-
sphinx-notfound-page
14-
sphinx-book-theme
15-
sphinx-prompt
16-
sphinx_substitution_extensions
17-
sphinx_tabs
18-
sphinxcontrib.plantuml
19-
sphinxcontrib-spelling
20-
sphinxcontrib-svg2pdfconverter
21-
sphinxmark
5+
# This file is generated with:
6+
#
7+
# rm -rf venv
8+
# python -m venv venv
9+
# source venv/bin/activate
10+
# pip install -r requirements.base.txt
11+
# cp requirements.header.txt requirements.txt
12+
# pip freeze >> requirements.txt
13+
#
14+
# Add this header, including copyright back
15+
#
16+
accessible-pygments==0.0.4
17+
alabaster==0.7.16
18+
Babel==2.14.0
19+
beautifulsoup4==4.12.3
20+
bottle==0.12.25
21+
breathe==4.35.0
22+
certifi==2024.2.2
23+
cfgv==3.4.0
24+
charset-normalizer==3.3.2
25+
distlib==0.3.8
26+
docutils==0.20.1
27+
filelock==3.13.1
28+
graphviz==0.20.1
29+
identify==2.5.33
30+
idna==3.6
31+
imagesize==1.4.1
32+
Jinja2==3.1.3
33+
lxml==5.1.0
34+
MarkupSafe==2.1.5
35+
nodeenv==1.8.0
36+
packaging==23.2
37+
pillow==10.2.0
38+
platformdirs==4.2.0
39+
pre-commit==3.6.0
40+
pydata-sphinx-theme==0.15.2
41+
pyenchant==3.2.2
42+
Pygments==2.17.2
43+
PyYAML==6.0.1
44+
requests==2.31.0
45+
six==1.16.0
46+
snowballstemmer==2.2.0
47+
soupsieve==2.5
48+
Sphinx==7.2.6
49+
sphinx-book-theme==1.1.0
50+
sphinx-notfound-page==1.0.0
51+
sphinx-prompt==1.8.0
52+
Sphinx-Substitution-Extensions==2022.2.16
53+
sphinx-tabs==3.4.5
54+
sphinxcontrib-applehelp==1.0.8
55+
sphinxcontrib-devhelp==1.0.6
56+
sphinxcontrib-htmlhelp==2.0.5
57+
sphinxcontrib-jsmath==1.0.1
58+
sphinxcontrib-plantuml==0.27
59+
sphinxcontrib-qthelp==1.0.7
60+
sphinxcontrib-serializinghtml==1.1.10
61+
sphinxcontrib-spelling==8.0.0
62+
sphinxcontrib-svg2pdfconverter==1.2.2
63+
sphinxmark==1.0.0
64+
typing_extensions==4.9.0
65+
urllib3==2.2.0
66+
virtualenv==20.25.0

Diff for: scripts/oneapi.py

-3
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ def sphinx(root, target):
9494
sphinx_args = '-N'
9595
if not cl_args.verbose:
9696
sphinx_args += ' -q'
97-
if not cl_args.serial:
98-
sphinx_args += ' -j auto'
9997
if cl_args.a:
10098
sphinx_args += ' -a'
10199
if cl_args.n:
@@ -272,7 +270,6 @@ def main():
272270
parser.add_argument('--branch')
273271
parser.add_argument('--verbose', action='store_true')
274272
parser.add_argument('--dry-run', action='store_true')
275-
parser.add_argument('--serial', action='store_true')
276273
parser.add_argument('-W', action='store_true')
277274
parser.add_argument(
278275
'-a', action='store_true', help='sphinx -a (build all files)'

0 commit comments

Comments
 (0)