From 9628811af5bea7e506182ce8d49d300a45911aeb Mon Sep 17 00:00:00 2001 From: James Date: Wed, 18 Nov 2020 13:41:00 +0000 Subject: [PATCH] ci: Travis -> GitHub Actions --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ .travis.yml | 12 ------------ 2 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f47679e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: Test +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + architecture: x64 + - run: sudo apt-get install python3-dev graphviz libgraphviz-dev pkg-config + - uses: actions/cache@v1 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + - run: pip install -r requirements.txt + - run: wget 'https://specs.frictionlessdata.io/schemas/tabular-data-package.json' + - name: Check that datapackage.json is well formed JSON + run: python -c 'import json; json.load(open("datapackage.json"))' + - name: Check that datapackage.json validates against the tabular data package json schema + run: jsonschema -i datapackage.json tabular-data-package.json diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 58aaeed..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: python -python: - - "3.8" -install: - - pip install -r requirements.txt - - wget 'https://specs.frictionlessdata.io/schemas/tabular-data-package.json' -script: - # Check that datapackage.json is well formed JSON - - python -c 'import json; json.load(open("datapackage.json"))' - # Check that datapackage.json validates against the tabular data package json schema - - jsonschema -i datapackage.json tabular-data-package.json -sudo: false