From 4c50d26c6c189e44d0ca0549079def731b367e0e Mon Sep 17 00:00:00 2001 From: Adeeb <8762862+quillford@users.noreply.github.com> Date: Mon, 10 Feb 2020 19:23:31 -0800 Subject: [PATCH] GitHub actions (#25) * setup github actions * remove azure pipelines config --- .github/workflows/tests.yml | 23 +++++++++++++++++++++++ azure-pipelines.yml | 14 -------------- 2 files changed, 23 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/tests.yml delete mode 100644 azure-pipelines.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000000000..3b8f6ca8e03b87 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,23 @@ +name: Tests + +on: [push, pull_request] + +jobs: + test: + + runs-on: ubuntu-16.04 + + steps: + - uses: actions/checkout@v2 + - name: Build docker image + run: docker build -t cereal . + - name: Unit Tests + run: | + docker run cereal bash -c "scons --test --asan -j$(nproc) && messaging/test_runner" + - name: Test ZMQ + run: | + docker run cereal bash -c "ZMQ=1 python -m unittest discover ." + - name: Test MSGQ + run: | + docker run cereal bash -c "MSGQ=1 python -m unittest discover ." + diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index c14526a5c1c404..00000000000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,14 +0,0 @@ -pr: none - -pool: - vmImage: 'ubuntu-16.04' - -steps: -- script: | - set -e - docker build -t cereal . - docker run cereal bash -c "scons --test --asan -j$(nproc) && messaging/test_runner" - docker run cereal bash -c "ZMQ=1 python -m unittest discover ." - docker run cereal bash -c "MSGQ=1 python -m unittest discover ." - - displayName: 'Run Tests'