Skip to content

Commit 8b69716

Browse files
committed
Switch from travis-ci to GitHub workflow.
1 parent 425cebc commit 8b69716

File tree

2 files changed

+54
-42
lines changed

2 files changed

+54
-42
lines changed

.github/workflows/main.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Main CI
2+
3+
on: [push]
4+
5+
jobs:
6+
#lint:
7+
# FIXME
8+
test:
9+
runs-on: ubuntu-latest
10+
#needs: [lint]
11+
timeout-minutes: 10
12+
strategy:
13+
matrix:
14+
python-version:
15+
#- '3.4'
16+
#- '3.5'
17+
#- '3.6'
18+
- '3.7'
19+
- '3.8'
20+
- '3.9'
21+
- '3.10'
22+
- '3.11'
23+
- '3.12'
24+
- 'pypy3.10'
25+
loader: [requests, aiohttp]
26+
#exclude:
27+
# - python-version: "3.4"
28+
# loader: aiohttp
29+
steps:
30+
- uses: actions/checkout@v4
31+
- name: Use Python ${{ matrix.python-version }}
32+
uses: actions/setup-python@v4
33+
with:
34+
python-version: ${{ matrix.python-version }}
35+
cache: 'pip'
36+
- name: Install
37+
run: |
38+
python -m pip install --upgrade pip
39+
pip install -r requirements.txt
40+
- name: Fetch test suites
41+
run: |
42+
git clone --depth 1 https://github.com/w3c/json-ld-api.git _json-ld-api
43+
git clone --depth 1 https://github.com/w3c/json-ld-framing.git _json-ld-framing
44+
git clone --depth 1 https://github.com/json-ld/normalization.git _normalization
45+
- name: Test with Python=${{ matrix.python-version }} Loader=${{ matrix.loader }}
46+
run: |
47+
python tests/runtests.py ./_json-ld-api/tests -l ${{ matrix.loader }}
48+
python tests/runtests.py ./_json-ld-framing/tests -l ${{ matrix.loader }}
49+
python tests/runtests.py ./_normalization/tests -l ${{ matrix.loader }}
50+
env:
51+
LOADER: ${{ matrix.loader }}
52+
#coverage:
53+
# needs: [test]
54+
# FIXME

.travis.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)