Родитель
cef98b4951
Коммит
fc2de19be5
|
@ -1,22 +0,0 @@
|
|||
version: 2.1
|
||||
|
||||
orbs:
|
||||
python: circleci/python@1.3.2
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
executor:
|
||||
name: python/default
|
||||
tag: "3.8"
|
||||
steps:
|
||||
- checkout
|
||||
- python/install-packages:
|
||||
pkg-manager: pip
|
||||
- run:
|
||||
command: python check_advisories.py --all
|
||||
name: Test
|
||||
|
||||
workflows:
|
||||
main:
|
||||
jobs:
|
||||
- build-and-test
|
|
@ -0,0 +1,24 @@
|
|||
name: Check Advisories
|
||||
|
||||
on:
|
||||
# Triggers the workflow on push events only for the default branch
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
fetch:
|
||||
name: Check Advisories
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up Python 3
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: '3.9'
|
||||
- name: Install Python dependencies
|
||||
run: pip install ./
|
||||
- name: Run Advisories Checks
|
||||
run: check_advisories --all
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
python check_advisories.py --staged
|
||||
check_advisories --staged-only
|
||||
|
||||
if [ "$?" -ne "0" ]; then
|
||||
echo "Aborting commit. Fix above errors or do 'git commit --no-verify'."
|
||||
|
|
Загрузка…
Ссылка в новой задаче