File tree Expand file tree Collapse file tree 4 files changed +37
-35
lines changed Expand file tree Collapse file tree 4 files changed +37
-35
lines changed Original file line number Diff line number Diff line change @@ -2,37 +2,7 @@ name: Continuous Integration
2
2
3
3
on : [pull_request]
4
4
5
-
6
5
jobs :
7
- lint :
8
- name : Lint check
9
- runs-on : ubuntu-20.04
10
- steps :
11
- - uses : actions/checkout@v1
12
- - uses : actions/setup-python@v1
13
- with :
14
- python-version : ' 3.10'
15
- architecture : ' x64'
16
- - name : Install Lint tools
17
- run : pip install --upgrade pip setuptools; pip install -r requirements.txt;
18
- - name : Lint All
19
- run : ./scripts/lint_all.sh
20
-
21
- format :
22
- name : Formatting check
23
- runs-on : ubuntu-20.04
24
-
25
- steps :
26
- - uses : actions/checkout@v1
27
- - uses : actions/setup-python@v1
28
- with :
29
- python-version : ' 3.10'
30
- architecture : ' x64'
31
- - name : Install Format tools
32
- run : pip install --upgrade pip setuptools; pip install -r requirements.txt; sudo apt-get install -y clang-format-6.0
33
- - name : Format Check
34
- run : ./scripts/format_check.sh
35
-
36
6
wheel-build :
37
7
name : Wheel test
38
8
runs-on : ubuntu-20.04
55
25
bazel-tests :
56
26
name : Library tests
57
27
runs-on : ubuntu-20.04
58
- needs : [lint, format]
59
28
60
29
steps :
61
30
- uses : actions/checkout@v1
78
47
# leak-tests:
79
48
# name: Memory Leak tests
80
49
# runs-on: ubuntu-20.04
81
- # needs: [lint, format]
82
50
#
83
51
# steps:
84
52
# - uses: actions/checkout@v1
96
64
tutorials-test :
97
65
name : Tutorial tests
98
66
runs-on : ubuntu-20.04
99
- needs : [lint, format, wheel-build]
67
+ needs : wheel-build
100
68
101
69
steps :
102
70
- uses : actions/checkout@v1
Original file line number Diff line number Diff line change
1
+ name : CI file checks
2
+
3
+ on : [pull_request]
4
+
5
+ jobs :
6
+ lint :
7
+ name : Lint check
8
+ runs-on : ubuntu-20.04
9
+ steps :
10
+ - uses : actions/checkout@v1
11
+ - uses : actions/setup-python@v1
12
+ with :
13
+ python-version : ' 3.10'
14
+ architecture : ' x64'
15
+ - name : Install Lint tools
16
+ run : pip install --upgrade pip setuptools; pip install -r requirements.txt;
17
+ - name : Lint All
18
+ run : ./scripts/lint_all.sh
19
+
20
+ format :
21
+ name : Formatting check
22
+ runs-on : ubuntu-20.04
23
+
24
+ steps :
25
+ - uses : actions/checkout@v1
26
+ - uses : actions/setup-python@v1
27
+ with :
28
+ python-version : ' 3.10'
29
+ architecture : ' x64'
30
+ - name : Install Format tools
31
+ run : pip install --upgrade pip setuptools; pip install -r requirements.txt; sudo apt-get install -y clang-format-6.0
32
+ - name : Format Check
33
+ run : ./scripts/format_check.sh
34
+
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ sympy==1.12
4
4
numpy == 1.24.2 # TensorFlow can detect if it was built against other versions.
5
5
nbformat == 5.1.3
6
6
pylint == 2.4.4
7
- yapf == 0.40.2
7
+ yapf == 0.43.0
8
8
tensorflow == 2.15.0
Original file line number Diff line number Diff line change 14
14
# limitations under the License.
15
15
# ==============================================================================
16
16
echo " Checking for lint in python code..." ;
17
- linting_outputs=$( pylint --rcfile .pylintrc ./tensorflow_quantum ./examples ) ;
17
+ linting_outputs=$( pylint --rcfile .pylintrc ./tensorflow_quantum) ;
18
18
exit_code=$?
19
19
if [ " $exit_code " == " 0" ]; then
20
20
echo " Python linting complete!" ;
You can’t perform that action at this time.
0 commit comments