diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..2141cb02 --- /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 6ac0f9dd..00000000 --- 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'