Skip to content

Commit 72f3e41

Browse files
committed
test
1 parent c5c18dc commit 72f3e41

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,14 @@ jobs:
3535
with:
3636
python-version: ${{ matrix.python-version }}
3737
allow-prereleases: true
38-
- name: Install dependencies
39-
run: |
40-
python -m pip install --upgrade pip
41-
pip install tox
4238
- name: Setup SocketCAN
4339
if: ${{ matrix.os == 'ubuntu-latest' }}
4440
run: |
4541
sudo apt-get -y install linux-modules-extra-$(uname -r)
4642
sudo ./test/open_vcan.sh
4743
- name: Test with pytest via tox
4844
run: |
49-
tox -e gh
45+
pipx run tox -e gh
5046
env:
5147
# SocketCAN tests currently fail with PyPy because it does not support raw CAN sockets
5248
# See: https://foss.heptapod.net/pypy/pypy/-/issues/3809
@@ -132,17 +128,9 @@ jobs:
132128
uses: actions/setup-python@v5
133129
with:
134130
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
140131
- name: Build documentation
141132
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
146134
147135
build:
148136
name: Packaging

tox.ini

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[tox]
2-
isolated_build = true
32

43
[testenv]
54
deps =
@@ -30,6 +29,17 @@ passenv =
3029
PY_COLORS
3130
TEST_SOCKETCAN
3231

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+
3343

3444
[pytest]
3545
testpaths = test

0 commit comments

Comments
 (0)