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
22
33on : [pull_request]
44
5-
65jobs :
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-
366 wheel-build :
377 name : Wheel test
388 runs-on : ubuntu-20.04
5525 bazel-tests :
5626 name : Library tests
5727 runs-on : ubuntu-20.04
58- needs : [lint, format]
5928
6029 steps :
6130 - uses : actions/checkout@v1
7847 # leak-tests:
7948 # name: Memory Leak tests
8049 # runs-on: ubuntu-20.04
81- # needs: [lint, format]
8250 #
8351 # steps:
8452 # - uses: actions/checkout@v1
9664 tutorials-test :
9765 name : Tutorial tests
9866 runs-on : ubuntu-20.04
99- needs : [lint, format, wheel-build]
67+ needs : wheel-build
10068
10169 steps :
10270 - 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
44numpy == 1.24.2 # TensorFlow can detect if it was built against other versions.
55nbformat == 5.1.3
66pylint == 2.4.4
7- yapf == 0.40.2
7+ yapf == 0.43.0
88tensorflow == 2.15.0
Original file line number Diff line number Diff line change 1414# limitations under the License.
1515# ==============================================================================
1616echo " Checking for lint in python code..." ;
17- linting_outputs=$( pylint --rcfile .pylintrc ./tensorflow_quantum ./examples ) ;
17+ linting_outputs=$( pylint --rcfile .pylintrc ./tensorflow_quantum) ;
1818exit_code=$?
1919if [ " $exit_code " == " 0" ]; then
2020 echo " Python linting complete!" ;
You can’t perform that action at this time.
0 commit comments