Skip to content

Commit

Permalink
Add github actions CI. (#41)
Browse files Browse the repository at this point in the history
* Add github actions CI.

* try to fix CI.

* try to fix CI.

* try to fix CI.

* add CI badge.
  • Loading branch information
AtsushiSakai authored May 6, 2021
1 parent 553ff6c commit dccd11e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9']

name: Python ${{ matrix.python-version }} CI

steps:
- uses: actions/checkout@v2
- run: git fetch --prune --unshallow

- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install pytest
- name: unit tests
run: |
disp=:99
screen=0
geom=640x480x24
exec Xvfb $disp -screen $screen $geom 2>/tmp/Xvfb.log &
export DISPLAY=:99
cd tests && pytest .
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# PyJSONViewer
A JSON file data viewer using pure python

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

# Requirements

- Python 3.6.x or higher
- Python 3.7 or higher

# Download

Expand Down

0 comments on commit dccd11e

Please sign in to comment.