summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@archlinux.org>2019-11-04 15:27:38 +0100
committerjelle van der Waa <jelle@vdwaa.nl>2019-11-04 15:58:21 +0100
commitf6a5557f7435ca8422b762f061093d6bad698e89 (patch)
tree85355009655edcb781b30aba87478a3a636c6108
parentffc22398412e06753fe89a6bebc07b325abf03df (diff)
downloadarchweb-f6a5557f7435ca8422b762f061093d6bad698e89.tar.gz
archweb-f6a5557f7435ca8422b762f061093d6bad698e89.zip
Add github actions workfow
Signed-off-by: Jelle van der Waa <jelle@archlinux.org>
-rw-r--r--.github/workflows/main.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 00000000..2ae67b35
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,29 @@
+name: Github-Actions
+
+on: [push, pull_request]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v1
+ - name: Set up Python 3.7
+ uses: actions/setup-python@v1
+ with:
+ python-version: 3.7
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install -r requirements.txt && pip install coveralls pylint
+ - name: Lint with pylint
+ run: |
+ pip install pylint
+ pylint devel main mirrors news packages releng templates todolists visualize *.py
+ - name: Run collectstatic
+ run: |
+ python manage.py collectstatic --noinput
+ - name: Run tests
+ run: |
+ coverage run --rcfile .coveragerc manage.py test