File tree 2 files changed +17
-5
lines changed 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -103,13 +103,29 @@ jobs:
103
103
toolchain :
104
104
- 1.42.0-x86_64-unknown-linux-gnu
105
105
- stable-x86_64-unknown-linux-gnu
106
+ python-version :
107
+ - ' 3.6' # https://packages.ubuntu.com/bionic/python3
108
+ - ' 3.8' # https://packages.ubuntu.com/focal/python3
106
109
107
- name : Expand_test (${{ matrix.toolchain }})
110
+ name : Expand_test (${{ matrix.toolchain }}, ${{ matrix.python-version }} )
108
111
runs-on : ubuntu-18.04
109
112
110
113
steps :
111
114
- name : Checkout
112
115
uses : actions/checkout@v2
113
116
117
+ - name : ' Setup `${{ matrix.toolchain }}`'
118
+ uses : actions-rs/toolchain@v1
119
+ with :
120
+ toolchain : ${{ matrix.toolchain }}
121
+ override : true
122
+ profile : minimal
123
+ components : rustfmt
124
+
125
+ - name : Setup Python ${{ python-version }}
126
+ uses : actions/setup-python@v2
127
+ with :
128
+ python-version : ${{ matrix.python-version }}
129
+
114
130
- name : expand.py tests
115
131
run : bash ./.github/workflows/test-expand.sh
Original file line number Diff line number Diff line change @@ -6,10 +6,6 @@ SCRIPT_DIR=$(cd $(dirname $0); pwd)
6
6
TEST_FILE=" test.rs"
7
7
FILE_HEAD=" fn main() {}"
8
8
9
- if [ -v CI ]; then
10
- rustup component add rustfmt
11
- fi
12
-
13
9
for MODULE in ${TEST_MODULES[@]} ; do
14
10
echo Test module $MODULE
15
11
python3 $SCRIPT_DIR /../../expand.py $MODULE > $TMP_PATH /$TEST_FILE
You can’t perform that action at this time.
0 commit comments