File tree Expand file tree Collapse file tree 4 files changed +24
-12
lines changed Expand file tree Collapse file tree 4 files changed +24
-12
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,15 @@ jobs:
23
23
- name : Set up Python
24
24
uses : actions/setup-python@v4
25
25
with :
26
- python-version : " 3.10 "
26
+ python-version : " 3.12 "
27
27
28
28
- name : Install dependencies
29
29
run : |
30
30
python -m pip install -U pylint
31
31
32
32
- name : Install
33
33
run : |
34
- python -m pip install .
34
+ python -m pip install .[cli]
35
35
36
36
- name : Run Lint
37
37
run : |
49
49
- uses : actions/setup-python@v4
50
50
name : Install Python
51
51
with :
52
- python-version : " 3.10 "
52
+ python-version : " 3.12 "
53
53
54
54
- name : Install dependencies
55
55
run : |
58
58
- name : Build
59
59
run : python -m build
60
60
61
- - uses : actions/upload-artifact@v3
61
+ - uses : actions/upload-artifact@v4
62
62
with :
63
+ name : dist
63
64
path : |
64
65
dist/*.tar.gz
65
66
dist/*.whl
77
78
# Only publish when a GitHub Release is created.
78
79
if : github.event_name == 'release'
79
80
steps :
80
- - uses : actions/download-artifact@v3
81
+ - uses : actions/download-artifact@v4
81
82
with :
82
- name : artifact
83
+ name : dist
83
84
path : dist
84
85
85
86
- uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change 1
1
** /__pycache__
2
2
** /.vscode
3
+ ** /.venv
3
4
build /
4
5
dist /
5
6
* .egg-info /
Original file line number Diff line number Diff line change 1
1
from typing import TYPE_CHECKING
2
2
3
- from peakrdl .plugins .exporter import ExporterSubcommandPlugin #pylint: disable=import-error
4
- from peakrdl .config import schema #pylint: disable=import-error
3
+ from peakrdl .plugins .exporter import ExporterSubcommandPlugin
4
+ from peakrdl .config import schema
5
5
6
6
from .exporter import HTMLExporter
7
7
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
- this_dir=" $( cd " $( dirname " $0 " ) " ; pwd -P ) "
6
- cd $this_dir /../
5
+ cd " $( dirname " $0 " ) "
6
+
7
+ # Initialize venv
8
+ rm -rf .venv
9
+ python3 -m venv .venv
10
+ source .venv/bin/activate
11
+
12
+ # Install test dependencies
13
+ pip install -r requirements.txt
14
+
15
+ # Install dut
16
+ pip install -e " ../[cli]"
7
17
8
18
# Run lint
9
- pylint --rcfile $this_dir / pylint.rc src/peakrdl_html | tee $this_dir /lint.rpt
19
+ pylint --rcfile pylint.rc ../ src/peakrdl_html
10
20
11
21
# Run static type checking
12
- mypy src/peakrdl_html
22
+ mypy ../ src/peakrdl_html
You can’t perform that action at this time.
0 commit comments