Skip to content

Commit e8163f6

Browse files
fixups
1 parent 4b6d65c commit e8163f6

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# This is a basic workflow to help you get started with Actions
2-
3-
name: Test-master
1+
name: mvtb-main
42

53
# Controls when the action will run.
64
on:
@@ -38,6 +36,7 @@ jobs:
3836
python=${{ matrix.python-version }}
3937
numpy<2
4038
pip
39+
pytest
4140
pytest-timeout
4241
pytest-xvfb
4342
matplotlib-base
@@ -50,17 +49,21 @@ jobs:
5049
spatialmath-python
5150
ansitable
5251
52+
- name: Install libegl on Linux
53+
if: runner.os == 'Linux'
54+
run: micromamba install -y -n myenv -c conda-forge libegl
55+
5356
- name: Install package and data package
5457
run: |
55-
micromamba run -n myenv python -m pip install -e .[dev] --no-build-isolation --no-deps
58+
micromamba run -n myenv python -m pip install .[dev] --no-build-isolation --no-deps
5659
# install the data package
5760
cd mvtb-data
58-
micromamba run -n myenv python -m pip install -e . --no-build-isolation --no-deps
61+
micromamba run -n myenv python -m pip install . --no-build-isolation --no-deps
5962
- name: Test with pytest
6063
env:
6164
MPLBACKEND: TkAgg
6265
run: |
63-
micromamba run -n myenv pytest --ignore=machinevisiontoolbox/blocks --timeout=50 --timeout_method thread -s
66+
micromamba run -n myenv python -m pytest --ignore=machinevisiontoolbox/blocks --timeout=50 --timeout_method thread -s
6467
6568
codecov:
6669
# If all tests pass:
@@ -81,6 +84,7 @@ jobs:
8184
coverage
8285
numpy<2
8386
pip
87+
pytest
8488
pytest-timeout
8589
pytest-xvfb
8690
matplotlib-base
@@ -93,12 +97,16 @@ jobs:
9397
spatialmath-python
9498
ansitable
9599
100+
- name: Install libegl on Linux
101+
if: runner.os == 'Linux'
102+
run: micromamba install -y -n myenv -c conda-forge libegl
103+
96104
- name: Install package and data package
97105
run: |
98-
micromamba run -n myenv python -m pip install -e .[dev] --no-build-isolation --no-deps
106+
micromamba run -n myenv python -m pip install .[dev] --no-build-isolation --no-deps
99107
# install the data package
100108
cd mvtb-data
101-
micromamba run -n myenv python -m pip install -e . --no-build-isolation --no-deps
109+
micromamba run -n myenv python -m pip install . --no-build-isolation --no-deps
102110
- name: Run coverage
103111
run: |
104112
micromamba run -n myenv coverage run --source=machinevisiontoolbox -m pytest --ignore=machinevisiontoolbox/blocks

0 commit comments

Comments
 (0)