Skip to content

Commit acc90e8

Browse files
author
Keng Susumpow
committed
Update workflows to install dependencies from requirements-dev.txt and add requirements.txt for production dependencies
1 parent 95637e4 commit acc90e8

File tree

5 files changed

+18
-3
lines changed

5 files changed

+18
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install dependencies
2020
run: |
2121
python -m pip install --upgrade pip
22-
pip install build twine
22+
pip install -r requirements-dev.txt
2323
2424
- name: Build package
2525
run: python -m build

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- name: Install dependencies
6363
run: |
6464
python -m pip install --upgrade pip
65-
pip install flake8 black isort
65+
pip install -r requirements-dev.txt
6666
6767
- name: Lint with flake8
6868
run: |

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ dist/
1414
# Virtual environments
1515
venv/
1616
.venv/
17+
bin
18+
lib
19+
pyvenv.cfg
1720

1821
# IDE
1922
.vscode/

requirements-dev.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1+
# Development dependencies for epydem
2+
# Testing
13
pytest>=6.0.0
2-
pytest-cov>=2.10.0
4+
pytest-cov>=2.10.0
5+
6+
# Code formatting and linting
7+
black>=22.0.0
8+
flake8>=4.0.0
9+
10+
# Build tools
11+
build>=0.8.0
12+
twine>=4.0.0

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Production dependencies for epydem
2+
# This library has no external dependencies - uses only Python standard library

0 commit comments

Comments
 (0)