From 2ae0327ea25db36227d52acfaae8927a59d4e5a3 Mon Sep 17 00:00:00 2001 From: Nelson Chen Date: Mon, 17 Feb 2020 10:23:47 -0800 Subject: [PATCH] GitHub actions (#217) * Setup GitHub Actions CI * Remove Azure Pipelines Config --- .github/workflows/tests.yml | 24 ++++++++++++++++++++++++ azure-pipelines.yml | 19 ------------------- 2 files changed, 24 insertions(+), 19 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..2141cb0264acd0 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,24 @@ +name: Tests + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-16.04 + + steps: + - uses: actions/checkout@v2 + - run: | + set -e + docker build -t opendbc . + name: "Build" + - run: | + docker run opendbc bash -c "python -m unittest discover opendbc" + name: "Unit tests" + - run: | + docker run opendbc bash -c "cd opendbc/can/tests/linter_python; PYTHONPATH=/ ./flake8_opendbc.sh" + docker run opendbc bash -c "cd opendbc/can/tests/linter_python; PYTHONPATH=/ ./pylint_opendbc.sh" + name: "Python linter" + - run: | + docker run opendbc bash -c "cd opendbc/can/tests/; PYTHONPATH=/ ./test_generator.sh" + name: "Generator test" diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 6ac0f9ddd5aceb..00000000000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,19 +0,0 @@ -pr: none - -pool: - vmImage: 'ubuntu-16.04' -steps: -- script: | - set -e - docker build -t opendbc . - displayName: 'Build' -- script: | - docker run opendbc bash -c "python -m unittest discover opendbc" - displayName: 'Unit tests' -- script: | - docker run opendbc bash -c "cd opendbc/can/tests/linter_python; PYTHONPATH=/ ./flake8_opendbc.sh" - docker run opendbc bash -c "cd opendbc/can/tests/linter_python; PYTHONPATH=/ ./pylint_opendbc.sh" - displayName: 'Python linter' -- script: | - docker run opendbc bash -c "cd opendbc/can/tests/; PYTHONPATH=/ ./test_generator.sh" - displayName: 'Generator test'