Skip to content

Commit

Permalink
Merge pull request #13 from JAY-Chan9yu/feature/add-github-workflow
Browse files Browse the repository at this point in the history
Feature/pytest workflow ์ถ”๊ฐ€
  • Loading branch information
JAY-Chan9yu authored Feb 20, 2023
2 parents 59508b6 + 0a78cbb commit 2177852
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 6 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Heymoji Pytest

on:
push:
branches: [ master ]
pull_request:
branches: [ master, develop ]

jobs:
build:
runs-on: ubuntu-20.04
services:
mysql:
image: mysql:latest
env:
MYSQL_PASSWORD: root
MYSQL_DATABASE: test_heymoji
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Start Pytest
run: |
pytest --cache-clear --cov=./ |tee pytest-coverage.txt
- name: Comment coverage
uses: coroo/[email protected]
20 changes: 14 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-i https://pypi.org/simple
aiomysql==0.1.1
alembic==1.8.1
anyio==3.6.2
asgi-lifespan==2.0.0
async-generator==1.10
asyncmy==0.2.3
attrs==22.2.0
Expand All @@ -10,8 +10,10 @@ cffi==1.14.6
charset-normalizer==2.0.4
click==7.1.2
configparser==5.2.0
coverage==7.1.0
cryptography==3.4.7
exceptiongroup==1.1.0
Faker==16.6.1
fastapi==0.88.0
greenlet==1.1.1
h11==0.14.0
Expand All @@ -20,25 +22,31 @@ httpx==0.23.3
idna==3.2
importlib-metadata==4.6.3
iniconfig==2.0.0
mako==1.2.3
markupsafe==2.1.1
Mako==1.2.3
MarkupSafe==2.1.1
mysql==0.0.3
mysqlclient==2.0.3
outcome==1.2.0
packaging==23.0
pluggy==1.0.0
pycparser==2.20
pydantic==1.10.4
pymysql==1.0.2
PyMySQL==1.0.2
pytest==7.2.1
pytest-asyncio==0.20.3
pytest-cov==4.0.0
pytest-env==0.8.1
python-dateutil==2.8.2
python-dotenv==0.17.0
requests==2.26.0
rfc3986==1.5.0
six==1.16.0
sniffio==1.3.0
sortedcontainers==2.4.0
sqlalchemy==1.4.7
SQLAlchemy==1.4.7
starlette==0.22.0
tomli==2.0.1
typing-extensions==4.4.0
typing_extensions==4.4.0
urllib3==1.26.6
uvicorn==0.13.4
zipp==3.5.0

0 comments on commit 2177852

Please sign in to comment.