[geany/www.geany.org] 499e0b: Add 'Safety' check CI job

Enrico Tröger git-noreply at xxxxx
Sat Jan 8 12:29:58 UTC 2022


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Sat, 08 Jan 2022 12:29:58 UTC
Commit:      499e0b8d29a11d018b74e62729ef8d2b83b16f81
             https://github.com/geany/www.geany.org/commit/499e0b8d29a11d018b74e62729ef8d2b83b16f81

Log Message:
-----------
Add 'Safety' check CI job


Modified Paths:
--------------
    .github/workflows/linting.yml
    tox.ini

Modified: .github/workflows/linting.yml
23 lines changed, 22 insertions(+), 1 deletions(-)
===================================================================
@@ -22,7 +22,7 @@ on:
       - master
 
 jobs:
-  build:
+  Lint:
     name: Python ${{ matrix.python }}
     runs-on: ubuntu-20.04
     strategy:
@@ -51,3 +51,24 @@ jobs:
 
       - name: Lint
         run: tox -e py
+
+  Safety:
+    name: Safety check of dependencies
+    runs-on: ubuntu-20.04
+
+    steps:
+      - uses: actions/checkout at v2
+
+      - name: Install dependencies
+        run: |
+          sudo apt-get update
+          sudo apt-get install --assume-yes --no-install-recommends \
+            default-libmysqlclient-dev \
+            libmemcached-dev
+          pip install --upgrade pip setuptools
+
+      - name: Install Tox
+        run: pip install tox
+
+      - name: Safety Check
+        run: tox -e safety


Modified: tox.ini
9 lines changed, 8 insertions(+), 1 deletions(-)
===================================================================
@@ -15,7 +15,7 @@
 skip_missing_interpreters = true
 skipsdist = true
 envlist =
-    py37,py38,py39,py310
+    safety,py37,py38,py39,py310
 
 geany_modules = geany latest_version news nightlybuilds pastebin static_docs
 
@@ -31,6 +31,13 @@ commands =
     {envbindir}/isort --check-only --diff {[tox]geany_modules}
     {envbindir}/pylint --rcfile=tox.ini --django-settings-module=geany.settings {[tox]geany_modules}
 
+[testenv:safety]
+deps =
+    safety
+    -r{toxinidir}/requirements.txt
+commands =
+    {envbindir}/safety check
+
 [flake8]
 exclude = build,.git,docs,migrations,local_settings.py,local_settings.docker.py
 ignore = E127,E128,



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list