Skip to content

Commit 4aa8628

Browse files
authored
Merge branch 'master' into mhucka-fix-qpc-test
2 parents 203026f + deb5b7d commit 4aa8628

File tree

4 files changed

+37
-35
lines changed

4 files changed

+37
-35
lines changed

.github/workflows/ci.yaml renamed to .github/workflows/ci-build-checks.yaml

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,7 @@ name: Continuous Integration
22

33
on: [pull_request]
44

5-
65
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-
366
wheel-build:
377
name: Wheel test
388
runs-on: ubuntu-20.04
@@ -55,7 +25,6 @@ jobs:
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
@@ -78,7 +47,6 @@ jobs:
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
@@ -96,7 +64,7 @@ jobs:
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

.github/workflows/ci-file-checks.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ sympy==1.12
44
numpy==1.24.2 # TensorFlow can detect if it was built against other versions.
55
nbformat==5.1.3
66
pylint==2.4.4
7-
yapf==0.40.2
7+
yapf==0.43.0
88
tensorflow==2.15.0

scripts/lint_all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515
# ==============================================================================
1616
echo "Checking for lint in python code...";
17-
linting_outputs=$(pylint --rcfile .pylintrc ./tensorflow_quantum ./examples);
17+
linting_outputs=$(pylint --rcfile .pylintrc ./tensorflow_quantum);
1818
exit_code=$?
1919
if [ "$exit_code" == "0" ]; then
2020
echo "Python linting complete!";

0 commit comments

Comments
 (0)