Skip to content

Commit 7939f77

Browse files
committed
add actions
1 parent b6df47b commit 7939f77

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

Diff for: .github/dependabot.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
pull-request-branch-name:
8+
separator: "-"

Diff for: .github/workflows/test.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Pipenv Install and Test
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
8+
jobs:
9+
unittests:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Install Python, pipenv and Pipfile packages
16+
uses: palewire/install-python-pipenv-pipfile@v4
17+
with:
18+
python-version: 3.11
19+
20+
- name: Run tests
21+
run: |
22+
pipenv install --dev
23+
cd code/
24+
pipenv run coverage run --source api/ -m pytest --verbose tests/unit/
25+
pipenv run coverage report --fail-under=80
26+
27+
- name: Run pip-audit
28+
run: pipenv run pip-audit

0 commit comments

Comments
 (0)