Skip to content

Commit 8f68085

Browse files
Split main workflow (#26)
2 parents 35118ff + a879d3d commit 8f68085

File tree

6 files changed

+107
-38
lines changed

6 files changed

+107
-38
lines changed

.github/workflows/doc.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# SPDX-FileCopyrightText: 2024 Ledger SAS
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: Python Doc
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- 'doc/**'
13+
- 'tox.ini'
14+
- '.github/workflows/doc.yml'
15+
pull_request:
16+
paths:
17+
- 'doc/**'
18+
- 'tox.ini'
19+
- '.github/workflows/doc.yml'
20+
21+
jobs:
22+
doc:
23+
uses: outpost-os/pipeline-python/.github/workflows/doc.yml@v1
24+
with:
25+
python-version: '3.10'

.github/workflows/lint.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# SPDX-FileCopyrightText: 2024 Ledger SAS
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: Python Lint
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- 'src/**'
13+
- 'tox.ini'
14+
- '.github/workflows/lint.yml'
15+
pull_request:
16+
paths:
17+
- 'src/**'
18+
- 'tox.ini'
19+
- '.github/workflows/lint.yml'
20+
21+
jobs:
22+
lint:
23+
uses: outpost-os/pipeline-python/.github/workflows/lint.yml@v1
24+
with:
25+
python-version: '3.10'

.github/workflows/main.yml

-37
This file was deleted.

.github/workflows/quality.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# SPDX-FileCopyrightText: 2024 Ledger SAS
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: Python Code Quality
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
pull_request:
12+
branches:
13+
- main
14+
15+
jobs:
16+
codeql:
17+
permissions:
18+
security-events: write
19+
packages: read
20+
actions: read
21+
contents: read
22+
uses: outpost-os/pipeline-python/.github/workflows/codeql.yml@v1

.github/workflows/unittest.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# SPDX-FileCopyrightText: 2024 Ledger SAS
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: Python Unit Tests
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- 'src/**'
13+
- 'tests/**'
14+
- 'tox.ini'
15+
- '.github/workflows/unittest.yml'
16+
pull_request:
17+
paths:
18+
- 'src/**'
19+
- 'tests/**'
20+
- 'tox.ini'
21+
- '.github/workflows/unittest.yml'
22+
23+
jobs:
24+
unittest:
25+
strategy:
26+
matrix:
27+
version: ['3.10', '3.11', '3.12']
28+
uses: outpost-os/pipeline-python/.github/workflows/unittest.yml@v1
29+
with:
30+
python-version: ${{ matrix.version }}
31+
secrets: inherit

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ SPDX-License-Identifier: Apache-2.0
1111
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/dts-utils)
1212

1313
[![codecov](https://codecov.io/gh/outpost-os/python-dts-utils/graph/badge.svg?token=SGQPBE40UI)](https://codecov.io/gh/outpost-os/python-dts-utils)
14-
![build](https://github.com/outpost-os/python-dts-utils/actions/workflows/main.yml/badge.svg)
14+
![lint](https://github.com/outpost-os/python-dts-utils/actions/workflows/lint.yml/badge.svg)
15+
![unittest](https://github.com/outpost-os/python-dts-utils/actions/workflows/unittest.yml/badge.svg)
16+
![doc](https://github.com/outpost-os/python-dts-utils/actions/workflows/doc.yml/badge.svg)
17+
![quality](https://github.com/outpost-os/python-dts-utils/actions/workflows/quality.yml/badge.svg)
1518

1619
# dts-utils python package
1720
`dts-utils` is an utility python package that aims to ease dts handling in python and source code

0 commit comments

Comments
 (0)