Skip to content

Commit

Permalink
workflow 통합 및 최신버전으로 업데이트
Browse files Browse the repository at this point in the history
  • Loading branch information
code-yeongyu committed Mar 13, 2023
1 parent ce6c383 commit df7638b
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 87 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/check_code.yml

This file was deleted.

65 changes: 65 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Pull Request
on:
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Setup Poetry
uses: abatilo/actions-poetry@v2

- name: Cache Dependencies
uses: actions/cache@v3
id: cache
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('./poetry.lock') }}

- name: Install Dependencies if cache doesn't hit
if: steps.cache.outputs.cache-hit != 'true'
run: poetry install

- name: Run test
run: poetry run invoke test

- name: Upload Code Coverage
run: bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

static-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Setup Poetry
uses: abatilo/actions-poetry@v2

- name: Cache Dependencies
uses: actions/cache@v3
id: cache
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('./poetry.lock') }}

- name: Install Dependencies if cache doesn't hit
if: steps.cache.outputs.cache-hit != 'true'
run: poetry install

- name: Check Code Styles
run: poetry run invoke check
14 changes: 6 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,18 @@ jobs:
with:
python-version: 3.9

- uses: snok/[email protected]
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Setup Poetry
uses: abatilo/actions-poetry@v2

- name: Cache Dependencies
uses: actions/cache@v2
id: cache-dependencies
uses: actions/cache@v3
id: cache
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
key: venv-${{ runner.os }}-${{ hashFiles('./poetry.lock') }}

- name: Install Dependencies if cache doesn't hit
if: steps.cache-dependencies.cache-hit != 'true'
if: steps.cache.outputs.cache-hit != 'true'
run: poetry install

- name: Publish to PyPI
Expand Down
42 changes: 0 additions & 42 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit df7638b

Please sign in to comment.