Skip to content

Commit dccd11e

Browse files
authored
Add github actions CI. (AtsushiSakai#41)
* Add github actions CI. * try to fix CI. * try to fix CI. * try to fix CI. * add CI badge.
1 parent 553ff6c commit dccd11e

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/CI.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: ['3.7', '3.8', '3.9']
12+
13+
name: Python ${{ matrix.python-version }} CI
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- run: git fetch --prune --unshallow
18+
19+
- name: Setup python
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install pytest
26+
- name: unit tests
27+
run: |
28+
disp=:99
29+
screen=0
30+
geom=640x480x24
31+
exec Xvfb $disp -screen $screen $geom 2>/tmp/Xvfb.log &
32+
export DISPLAY=:99
33+
cd tests && pytest .

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# PyJSONViewer
44
A JSON file data viewer using pure python
55

6+
[![CI](https://github.com/AtsushiSakai/PyJSONViewer/actions/workflows/CI.yml/badge.svg)](https://github.com/AtsushiSakai/PyJSONViewer/actions/workflows/CI.yml)
67
[![Downloads](https://pepy.tech/badge/pyjsonviewer)](https://pepy.tech/project/pyjsonviewer)
78
[![Downloads](https://pepy.tech/badge/pyjsonviewer/month)](https://pepy.tech/project/pyjsonviewer)
89
[![Downloads](https://pepy.tech/badge/pyjsonviewer/week)](https://pepy.tech/project/pyjsonviewer)
@@ -39,7 +40,7 @@ Features:
3940

4041
# Requirements
4142

42-
- Python 3.6.x or higher
43+
- Python 3.7 or higher
4344

4445
# Download
4546

0 commit comments

Comments
 (0)