From ab634280dd0f1f15efede3191e261f64f977e3b1 Mon Sep 17 00:00:00 2001 From: sahayana Date: Thu, 2 Nov 2023 20:43:15 +0400 Subject: [PATCH] =?UTF-8?q?=EC=B6=94=EA=B0=80:=20CI=20=EC=A0=95=EC=B1=85?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80=20-=20mysql,=20redis=20=EC=84=A4=EC=B9=98?= =?UTF-8?q?=20-=20=EC=9D=B4=ED=9B=84=20=EB=94=94=ED=8E=9C=EB=8D=98?= =?UTF-8?q?=EC=8B=9C=20=EC=BA=90=EC=8B=B1=20=EA=B3=A0=EB=A0=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 50 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..27d5b61 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,50 @@ +name: alaltalk CI +on: + pull_request: + branches: + - "**" + +jobs: + + checks: + + runs-on: ubuntu-20.04 + env: + PIPENV_VENV_IN_PROJECT: enable + + services: + mysql: + image: mysql:8.0 + env: + MYSQL_DATABASE: alaltalk + MYSQL_ROOT_PASSWORD: alaltalk + ports: + - 33306:3306 + options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + redis: + image: redis + ports: + - 6379:6379 + options: --health-cmd "redis-cli ping" --health-interval=10s --health-timeout=5s --health-retries=3 + + steps: + - name: Checkout source code + uses: actions/checkout@v2 + + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: "3.8.10" + + - name: Install pipenv + run: | + python -m pip install --upgrade pipenv wheel + + - name: Install dependencies + run: | + pipenv install + + - name: Run tests + id: run_test + run: | + pipenv run pytest \ No newline at end of file