From e091ca5f07895cdaaf9623bbcc0bf09a61385363 Mon Sep 17 00:00:00 2001 From: MichaelBroughton Date: Sat, 8 Feb 2020 17:34:56 -0800 Subject: [PATCH 1/6] Testing new CI Trying to setup initial GitHub Actions based on old CI. --- .github/workflows/ci_test.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/ci_test.yml diff --git a/.github/workflows/ci_test.yml b/.github/workflows/ci_test.yml new file mode 100644 index 000000000..b7d602e8b --- /dev/null +++ b/.github/workflows/ci_test.yml @@ -0,0 +1,19 @@ +name: CI + +on: [pull_request] + +jobs: + build: + + runs-on: ubuntu-16.04 + + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-python@v1 + with: + python-version: '3.6' + architecture: 'x64' + - name: 'Install Format tools' + run: pip install --upgrade pip setuptools wheel yapf + - name: 'Format Check' + run: ./scripts/format_check.sh From 7d3baa65b288badabb7ac12fdcd625ce6ca46973 Mon Sep 17 00:00:00 2001 From: MichaelBroughton Date: Sat, 8 Feb 2020 17:50:27 -0800 Subject: [PATCH 2/6] Update ci_test.yml testing --- .github/workflows/ci_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_test.yml b/.github/workflows/ci_test.yml index b7d602e8b..bf595936e 100644 --- a/.github/workflows/ci_test.yml +++ b/.github/workflows/ci_test.yml @@ -14,6 +14,6 @@ jobs: python-version: '3.6' architecture: 'x64' - name: 'Install Format tools' - run: pip install --upgrade pip setuptools wheel yapf + run: pip install --upgrade pip setuptools wheel yapf; apt-get install clang-format - name: 'Format Check' run: ./scripts/format_check.sh From c2fde6ef5ee92cc25bb6c6c302d83fb61191fa45 Mon Sep 17 00:00:00 2001 From: MichaelBroughton Date: Sat, 8 Feb 2020 17:51:46 -0800 Subject: [PATCH 3/6] Update ci_test.yml sudo --- .github/workflows/ci_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_test.yml b/.github/workflows/ci_test.yml index bf595936e..ab11931bf 100644 --- a/.github/workflows/ci_test.yml +++ b/.github/workflows/ci_test.yml @@ -14,6 +14,6 @@ jobs: python-version: '3.6' architecture: 'x64' - name: 'Install Format tools' - run: pip install --upgrade pip setuptools wheel yapf; apt-get install clang-format + run: pip install --upgrade pip setuptools wheel yapf; sudo apt-get install clang-format - name: 'Format Check' run: ./scripts/format_check.sh From e391935014cd9f9a2412789422a30336c99f1568 Mon Sep 17 00:00:00 2001 From: MichaelBroughton Date: Sat, 8 Feb 2020 17:55:16 -0800 Subject: [PATCH 4/6] Update ci_test.yml auto yes --- .github/workflows/ci_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_test.yml b/.github/workflows/ci_test.yml index ab11931bf..dd07cf326 100644 --- a/.github/workflows/ci_test.yml +++ b/.github/workflows/ci_test.yml @@ -14,6 +14,6 @@ jobs: python-version: '3.6' architecture: 'x64' - name: 'Install Format tools' - run: pip install --upgrade pip setuptools wheel yapf; sudo apt-get install clang-format + run: pip install --upgrade pip setuptools wheel yapf; sudo apt-get install -y clang-format - name: 'Format Check' run: ./scripts/format_check.sh From 2eadf79e6f63879695031a7caaec9915f86ae189 Mon Sep 17 00:00:00 2001 From: MichaelBroughton Date: Sat, 8 Feb 2020 18:34:31 -0800 Subject: [PATCH 5/6] raw output --- .github/workflows/ci_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_test.yml b/.github/workflows/ci_test.yml index dd07cf326..881579074 100644 --- a/.github/workflows/ci_test.yml +++ b/.github/workflows/ci_test.yml @@ -14,6 +14,6 @@ jobs: python-version: '3.6' architecture: 'x64' - name: 'Install Format tools' - run: pip install --upgrade pip setuptools wheel yapf; sudo apt-get install -y clang-format + run: pip install --upgrade pip setuptools wheel yapf; find tensorflow_quantum/ -iname *.h -o -iname *.cc | xargs clang-format -style=google -output-replacements-xml - name: 'Format Check' run: ./scripts/format_check.sh From d496882806b9ea090a31452be1d2c09e3414bcaf Mon Sep 17 00:00:00 2001 From: MichaelBroughton Date: Sat, 8 Feb 2020 18:36:01 -0800 Subject: [PATCH 6/6] tweak --- .github/workflows/ci_test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_test.yml b/.github/workflows/ci_test.yml index 881579074..e5ddd0d5f 100644 --- a/.github/workflows/ci_test.yml +++ b/.github/workflows/ci_test.yml @@ -14,6 +14,6 @@ jobs: python-version: '3.6' architecture: 'x64' - name: 'Install Format tools' - run: pip install --upgrade pip setuptools wheel yapf; find tensorflow_quantum/ -iname *.h -o -iname *.cc | xargs clang-format -style=google -output-replacements-xml + run: pip install --upgrade pip setuptools wheel yapf; sudo apt-get install -y clang-format - name: 'Format Check' - run: ./scripts/format_check.sh + run: find tensorflow_quantum/ -iname *.h -o -iname *.cc | xargs clang-format -style=google -output-replacements-xml