File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,15 +23,15 @@ jobs:
2323 - name : Set up Python
2424 uses : actions/setup-python@v4
2525 with :
26- python-version : " 3.10 "
26+ python-version : " 3.12 "
2727
2828 - name : Install dependencies
2929 run : |
3030 python -m pip install -U pylint
3131
3232 - name : Install
3333 run : |
34- python -m pip install .
34+ python -m pip install .[cli]
3535
3636 - name : Run Lint
3737 run : |
4949 - uses : actions/setup-python@v4
5050 name : Install Python
5151 with :
52- python-version : " 3.10 "
52+ python-version : " 3.12 "
5353
5454 - name : Install dependencies
5555 run : |
5858 - name : Build
5959 run : python -m build
6060
61- - uses : actions/upload-artifact@v3
61+ - uses : actions/upload-artifact@v4
6262 with :
63+ name : dist
6364 path : |
6465 dist/*.tar.gz
6566 dist/*.whl
7778 # Only publish when a GitHub Release is created.
7879 if : github.event_name == 'release'
7980 steps :
80- - uses : actions/download-artifact@v3
81+ - uses : actions/download-artifact@v4
8182 with :
82- name : artifact
83+ name : dist
8384 path : dist
8485
8586 - uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change 11** /__pycache__
22** /.vscode
3+ ** /.venv
34build /
45dist /
56* .egg-info /
Original file line number Diff line number Diff line change 11from typing import TYPE_CHECKING
22
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
55
66from .exporter import HTMLExporter
77
Original file line number Diff line number Diff line change 22
33set -e
44
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]"
717
818# 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
1020
1121# 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