Skip to content

Commit 7e533e1

Browse files
author
Lukas Burgey
committed
Switch github action
1 parent 0077a3a commit 7e533e1

File tree

4 files changed

+40
-33
lines changed

4 files changed

+40
-33
lines changed

.github/workflows/checks.yml

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

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# from: https://github.com/marketplace/actions/restore-or-create-a-python-virtualenv
2+
3+
name: CI
4+
5+
on: [push]
6+
7+
jobs:
8+
create-virtualenv:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- uses: actions/setup-python@v2
13+
- uses: syphar/restore-virtualenv@v1
14+
id: cache-virtualenv
15+
16+
- uses: syphar/restore-pip-download-cache@v1
17+
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
18+
19+
- run: pip install -r requirements.txt -r test-requirements.txt
20+
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
21+
22+
linter:
23+
needs: create-virtualenv
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v1
27+
- uses: actions/setup-python@v2
28+
- uses: syphar/restore-virtualenv@v1
29+
id: cache-virtualenv
30+
31+
- run: isort . --diff --check-only
32+
- run: black --check --diff .
33+
- run: pyright .

setup.py

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,6 @@
1-
# MIT License{{{
2-
#
3-
# Copyright (c) 2017 - 2019 Karlsruhe Institute of Technology - Steinbuch Centre for Computing
4-
#
5-
# Permission is hereby granted, free of charge, to any person obtaining a copy
6-
# of this software and associated documentation files (the "Software"), to deal
7-
# in the Software without restriction, including without limitation the rights
8-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
# copies of the Software, and to permit persons to whom the Software is
10-
# furnished to do so, subject to the following conditions:
11-
#
12-
# The above copyright notice and this permission notice shall be included in all
13-
# copies or substantial portions of the Software.
14-
#
15-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
# SOFTWARE.}}}
22-
231
import setuptools
242

253
setuptools.setup(
26-
setup_requires=['pbr>=1.8'],
27-
pbr=True)
4+
setup_requires=["pbr>=1.8"],
5+
pbr=True,
6+
)

test-requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ aiohttp
99
fastapi>=0.61.2
1010
flask
1111
types-Flask
12+
13+
black
14+
pyright
15+
isort

0 commit comments

Comments
 (0)