Skip to content

Commit c7cf047

Browse files
authored
Merge pull request #6 from digitronik/github-action
github action
2 parents ccb1965 + 5639a31 commit c7cf047

File tree

2 files changed

+36
-20
lines changed

2 files changed

+36
-20
lines changed

.github/workflows/main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Link Status
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-16.04
8+
strategy:
9+
matrix:
10+
python-version: [ '3.6', '3.7' ]
11+
name: Python ${{ matrix.python-version }}
12+
steps:
13+
- name: Checkout to master
14+
uses: actions/checkout@master
15+
16+
- name: Setup python
17+
uses: actions/setup-python@v1
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
architecture: x64
21+
22+
- name: Pre-Commit
23+
run: |
24+
python -m pip install pre-commit
25+
pre-commit run -a
26+
27+
- name: Analysis (git diff)
28+
if: failure()
29+
run: git diff
30+
31+
- name: Publish package
32+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
33+
uses: pypa/gh-action-pypi-publish@master
34+
with:
35+
user: __token__
36+
password: ${{ secrets.pypi_linkstatus }}

.travis.yml

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

0 commit comments

Comments
 (0)