File tree 2 files changed +15
-4
lines changed
2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 88
88
git submodule foreach 'git tag'
89
89
90
90
- name : ' Set up Python (${{ matrix.python-version }})'
91
+ id : python
91
92
uses : actions/setup-python@v5
92
93
with :
93
94
python-version : ' ${{ matrix.python-version }}'
@@ -102,19 +103,28 @@ jobs:
102
103
# To ignore a bad cache, bump the cache* integer.
103
104
gha-cache-key : cache0-py${{ matrix.python-version }}
104
105
105
- - name : Test
106
+ - name : Test pants-plugins
107
+ if : ${{ matrix.python-version-short == '3.9' }}
106
108
env :
107
109
# Github Actions uses the 'runner' user, so use that instead of stanley.
108
110
ST2TESTS_SYSTEM_USER : ' runner'
111
+ run : |
112
+ pants test pants-plugins/::
113
+
114
+ - name : Unit Tests
109
115
# We do not support running pytest everywhere yet. When we do it will be simply:
110
116
# pants test ::
111
117
# Until then, we need to manually adjust this command line to test what we can.
112
- run : |
113
- pants test pylint_plugins/:: pants-plugins/::
118
+ run : >
119
+ pants test
120
+ --python-bootstrap-search-path=[]
121
+ --python-bootstrap-search-path=${{ steps.python.outputs.python-path }}
122
+ --tags=unit
123
+ pylint_plugins/::
114
124
115
125
- name : Upload pants log
116
126
uses : actions/upload-artifact@v4
117
127
with :
118
128
name : pants-log-py${{ matrix.python-version }}
119
129
path : .pants.d/pants.log
120
- if : always() # We want the log even on failures.
130
+ if : ${{ always() }} # We want the log even on failures.
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ python_sources()
8
8
9
9
python_tests (
10
10
name = "tests" ,
11
+ tags = ["unit" ],
11
12
dependencies = [
12
13
"./fixtures" ,
13
14
"!//conftest.py:test_utils" ,
You can’t perform that action at this time.
0 commit comments