Skip to content

Commit 731b20e

Browse files
authored
[CHORE] Add github actions for test and security stages (#51)
1 parent f26323f commit 731b20e

File tree

3 files changed

+82
-3
lines changed

3 files changed

+82
-3
lines changed

.github/dependabot.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "pip"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
12+
day: "tuesday"
13+
commit-message:
14+
prefix: "[FIX]"
15+
prefix-development: "[CHORE]"
16+
include: scope
17+
# Fetch and update latest `github-actions` pkgs
18+
- package-ecosystem: github-actions
19+
directory: '/'
20+
schedule:
21+
interval: "weekly"
22+
day: "tuesday"
23+
commit-message:
24+
prefix: "[FIX]"
25+
prefix-development: "[CHORE]"
26+
include: scope

.github/workflows/test.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Test
2+
concurrency:
3+
group: ci-${{ github.ref }}
4+
cancel-in-progress: true
5+
on:
6+
push:
7+
branches:
8+
- "master"
9+
pull_request:
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-20.04
14+
name: Run tests
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.6'
21+
cache: 'pip'
22+
23+
- name: Install Dependencies
24+
run: pip install -r requirements.txt -r requirements-dev.txt
25+
26+
- name: Run tests
27+
run: |
28+
make development
29+
source virtualenv_run/bin/activate
30+
make test
31+
32+
security:
33+
runs-on: ubuntu-20.04
34+
name: Run style/security checks
35+
36+
steps:
37+
- uses: actions/checkout@v3
38+
39+
- uses: actions/setup-python@v4
40+
with:
41+
python-version: '3.6'
42+
cache: 'pip'
43+
44+
- name: Install Dependencies
45+
run: pip install -r requirements.txt -r requirements-dev.txt
46+
47+
- name: Safety Check
48+
shell: bash
49+
run: |
50+
make development
51+
source virtualenv_run/bin/activate
52+
pip install -U safety
53+
safety check -i 44610 -i 51499 -i 51457 -i 39253 -i 44634 -i 50473

requirements-dev.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ipython-genutils==0.2.0
1414
jedi==0.16.0
1515
more-itertools==8.2.0
1616
nodeenv==1.3.5
17-
packaging==20.3
17+
packaging==21.3
1818
parso==0.6.2
1919
pexpect==4.8.0
2020
pickleshare==0.7.5
@@ -24,12 +24,12 @@ pretend==1.0.8
2424
prompt-toolkit==3.0.5
2525
ptyprocess==0.6.0
2626
py==1.8.1
27-
Pygments==2.6.1
27+
Pygments==2.7.4
2828
pyparsing==2.4.7
2929
pytest==5.4.1
3030
pytest-cov==2.8.1
3131
pytest-mock==3.6.1
32-
PyYAML==5.3.1
32+
PyYAML==5.4.1
3333
six==1.14.0
3434
toml==0.10.0
3535
tox==3.0.0

0 commit comments

Comments
 (0)