Skip to content

Commit cdf1531

Browse files
committed
Switch to GitHub Actions
Signed-off-by: Michael Mior <[email protected]>
1 parent b6febf3 commit cdf1531

File tree

5 files changed

+23
-17
lines changed

5 files changed

+23
-17
lines changed

Diff for: .github/workflows/ci.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: ${{ matrix.python-version }}
16+
cache: 'pip'
17+
- name: Install Python dependencies
18+
run: pip install .
19+
- name: Run tests
20+
run: python -m unittest --v

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ __pycache__
33
*.pyc
44
*.json
55
*.txt
6+
!requirements.txt
67
.coverage
78
htmlcov
89
build

Diff for: .travis.yml

-16
This file was deleted.

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# jsonsubschema #
22

3-
[![Travis build status](https://travis-ci.com/IBM/jsonsubschema.svg?branch=master)](https://travis-ci.com/IBM/jsonsubschema) [![Codecov code coverage](https://codecov.io/gh/IBM/jsonsubschema/branch/master/graph/badge.svg)](https://codecov.io/gh/IBM/jsonsubschema)
3+
[![CI](https://github.com/IBM/jsonsubschema/actions/workflows/ci.yml/badge.svg)](https://github.com/IBM/jsonsubschema/actions/workflows/ci.yml)
44

55
**jsonsubschema** checks if one JSON schema is a subschema (subtype) of another.
66

Diff for: requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.

0 commit comments

Comments
 (0)