Skip to content

Commit b162db2

Browse files
authored
Merge pull request #148 from digitronik/github_action
RFR: move to github action
2 parents bfa1ae7 + a55632b commit b162db2

File tree

3 files changed

+53
-24
lines changed

3 files changed

+53
-24
lines changed

.github/workflows/main.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: readit
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
pre-commit:
7+
name: Pre-Commit Checks
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout to master
11+
uses: actions/checkout@master
12+
13+
- name: Setup python
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: '3.7'
17+
architecture: 'x64'
18+
19+
- name: Pre-Commit Checks
20+
run: |
21+
python -m pip install pre-commit
22+
pre-commit run -a
23+
24+
- name: Analysis (git diff)
25+
if: failure()
26+
run: git diff
27+
28+
tests:
29+
name: Test-${{ matrix.os }}-Py${{ matrix.python-version }}
30+
needs: pre-commit
31+
runs-on: ${{ matrix.os }}
32+
strategy:
33+
matrix:
34+
os: [ubuntu-latest, windows-latest, macos-latest]
35+
python-version: [ '3.6', '3.7' ]
36+
steps:
37+
- name: Checkout to master
38+
uses: actions/checkout@master
39+
40+
- name: Setup Python-${{ matrix.python-version }}
41+
uses: actions/setup-python@v1
42+
with:
43+
python-version: ${{ matrix.python-version }}
44+
architecture: x64
45+
46+
- name: Setup Package
47+
run: python -m pip install .
48+
49+
- name: Unit Tests
50+
run: |
51+
python -m pip install pytest
52+
py.test -v

.travis.yml

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

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
name="readit",
1111
packages=find_packages(),
1212
entry_points={"console_scripts": ["readit = readit.__init__:main"]},
13-
version="v0.2",
13+
version="0.2",
1414
author="Ganesh, Shital, Daivshala",
1515
author_email="ganeshhubale03@gmail.com",
1616
description="Readit - Command Line Bookmark Manager Tool",

0 commit comments

Comments
 (0)