3232 run : |
3333 python -m pip install --upgrade pip wheel setuptools
3434 python -m pip install --upgrade .[test]
35- - name : Set LEGEND_METADATA variable
35+ - name : Set LEGEND_METADATA_TESTDIR variable
3636 run : |
37- echo "LEGEND_METADATA =$GITHUB_WORKSPACE/legend-metadata" >> $GITHUB_ENV
37+ echo "LEGEND_METADATA_TESTDIR =$GITHUB_WORKSPACE/legend-metadata" >> $GITHUB_ENV
3838 - name : Clone legend-metadata
3939 if : github.event.pull_request.head.repo.fork == false
4040 uses : actions/checkout@v4
@@ -43,11 +43,11 @@ jobs:
4343 fetch-depth : 0
4444 submodules : recursive
4545 token : ${{ secrets.READPRIVATE }}
46- path : ${{ env.LEGEND_METADATA }}
46+ path : ${{ env.LEGEND_METADATA_TESTDIR }}
4747 - name : Run unit tests
4848 if : github.event.pull_request.head.repo.fork == true
4949 run : |
50- python -m pytest
50+ python -m pytest -m "not needs_slowcontrol"
5151 - name : Run unit tests that need legend-metadata
5252 if : github.event.pull_request.head.repo.fork == false
5353 run : |
6868 run : |
6969 python -m pip install --upgrade pip wheel setuptools
7070 python -m pip install --upgrade .[test]
71- - name : Set LEGEND_METADATA variable
71+ - name : Set LEGEND_METADATA_TESTDIR variable
7272 run : |
73- echo "LEGEND_METADATA =$GITHUB_WORKSPACE/legend-metadata" >> $GITHUB_ENV
73+ echo "LEGEND_METADATA_TESTDIR =$GITHUB_WORKSPACE/legend-metadata" >> $GITHUB_ENV
7474 - name : Clone legend-metadata
7575 if : github.event.pull_request.head.repo.fork == false
7676 uses : actions/checkout@v4
@@ -79,11 +79,11 @@ jobs:
7979 fetch-depth : 0
8080 submodules : recursive
8181 token : ${{ secrets.READPRIVATE }}
82- path : ${{ env.LEGEND_METADATA }}
82+ path : ${{ env.LEGEND_METADATA_TESTDIR }}
8383 - name : Generate report for unit tests
8484 if : github.event.pull_request.head.repo.fork == true
8585 run : |
86- python -m pytest --cov=legendmeta --cov-report=xml
86+ python -m pytest --cov=legendmeta --cov-report=xml -m "not needs_slowcontrol"
8787 - name : Generate report for (all) unit tests
8888 if : github.event.pull_request.head.repo.fork == false
8989 run : |
0 commit comments