File tree 2 files changed +13
-15
lines changed
2 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -35,18 +35,14 @@ jobs:
35
35
with :
36
36
python-version : ${{ matrix.python-version }}
37
37
allow-prereleases : true
38
- - name : Install dependencies
39
- run : |
40
- python -m pip install --upgrade pip
41
- pip install tox
42
38
- name : Setup SocketCAN
43
39
if : ${{ matrix.os == 'ubuntu-latest' }}
44
40
run : |
45
41
sudo apt-get -y install linux-modules-extra-$(uname -r)
46
42
sudo ./test/open_vcan.sh
47
43
- name : Test with pytest via tox
48
44
run : |
49
- tox -e gh
45
+ pipx run tox -e gh
50
46
env :
51
47
# SocketCAN tests currently fail with PyPy because it does not support raw CAN sockets
52
48
# See: https://foss.heptapod.net/pypy/pypy/-/issues/3809
@@ -132,17 +128,9 @@ jobs:
132
128
uses : actions/setup-python@v5
133
129
with :
134
130
python-version : " 3.10"
135
- - name : Install dependencies
136
- run : |
137
- python -m pip install --upgrade pip
138
- pip install -e .[canalystii,gs_usb,mf4]
139
- pip install -r doc/doc-requirements.txt
140
131
- name : Build documentation
141
132
run : |
142
- python -m sphinx -Wan --keep-going doc build
143
- - name : Run doctest
144
- run : |
145
- python -m sphinx -b doctest -W --keep-going doc build
133
+ pipx run tox -e docs
146
134
147
135
build :
148
136
name : Packaging
Original file line number Diff line number Diff line change 1
1
[tox]
2
- isolated_build = true
3
2
4
3
[testenv]
5
4
deps =
@@ -30,6 +29,17 @@ passenv =
30
29
PY_COLORS
31
30
TEST_SOCKETCAN
32
31
32
+ [testenv:docs]
33
+ deps =
34
+ -r doc/doc-requirements.txt
35
+
36
+ extras =
37
+ canalystii
38
+ gs_usb
39
+
40
+ commands =
41
+ python -m sphinx -an doc build
42
+
33
43
34
44
[pytest]
35
45
testpaths = test
You can’t perform that action at this time.
0 commit comments