Skip to content

Commit 8bb7de5

Browse files
authored
Merge pull request #230 from odscjames/github-actions
ci: Travis -> GitHub Actions
2 parents 3dbc86b + 9628811 commit 8bb7de5

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

.github/workflows/test.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Test
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- name: Setup python
10+
uses: actions/setup-python@v2
11+
with:
12+
python-version: 3.8
13+
architecture: x64
14+
- run: sudo apt-get install python3-dev graphviz libgraphviz-dev pkg-config
15+
- uses: actions/cache@v1
16+
with:
17+
path: ~/.cache/pip
18+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
19+
- run: pip install -r requirements.txt
20+
- run: wget 'https://specs.frictionlessdata.io/schemas/tabular-data-package.json'
21+
- name: Check that datapackage.json is well formed JSON
22+
run: python -c 'import json; json.load(open("datapackage.json"))'
23+
- name: Check that datapackage.json validates against the tabular data package json schema
24+
run: jsonschema -i datapackage.json tabular-data-package.json

.travis.yml

-12
This file was deleted.

0 commit comments

Comments
 (0)