Skip to content

Commit 373e679

Browse files
authored
Merge pull request #51 from code-yeongyu/feature/workflows-latest
2 parents 76e82ca + ef0893f commit 373e679

File tree

4 files changed

+71
-87
lines changed

4 files changed

+71
-87
lines changed

.github/workflows/check_code.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/pull_request.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Pull Request
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
with:
11+
fetch-depth: 0
12+
- name: Set up Python 3.9
13+
uses: actions/setup-python@v4
14+
with:
15+
python-version: 3.9
16+
17+
- name: Setup Poetry
18+
uses: abatilo/actions-poetry@v2
19+
20+
- name: Cache Dependencies
21+
uses: actions/cache@v3
22+
id: cache
23+
with:
24+
path: .venv
25+
key: venv-${{ runner.os }}-${{ hashFiles('./poetry.lock') }}
26+
27+
- name: Install Dependencies if cache doesn't hit
28+
if: steps.cache.outputs.cache-hit != 'true'
29+
run: poetry install
30+
31+
- name: Run test
32+
run: poetry run invoke test
33+
34+
- name: Upload Code Coverage
35+
run: bash <(curl -s https://codecov.io/bash)
36+
env:
37+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
38+
39+
static-analysis:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v3
43+
with:
44+
fetch-depth: 0
45+
- name: Set up Python 3.9
46+
uses: actions/setup-python@v4
47+
with:
48+
python-version: 3.9
49+
50+
- name: Setup Poetry
51+
uses: abatilo/actions-poetry@v2
52+
53+
- name: Cache Dependencies
54+
uses: actions/cache@v3
55+
id: cache
56+
with:
57+
path: .venv
58+
key: venv-${{ runner.os }}-${{ hashFiles('./poetry.lock') }}
59+
60+
- name: Install Dependencies if cache doesn't hit
61+
if: steps.cache.outputs.cache-hit != 'true'
62+
run: poetry install
63+
64+
- name: Check Code Styles
65+
run: poetry run invoke check

.github/workflows/release.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,18 @@ jobs:
1414
with:
1515
python-version: 3.9
1616

17-
- uses: snok/[email protected]
18-
with:
19-
virtualenvs-create: true
20-
virtualenvs-in-project: true
17+
- name: Setup Poetry
18+
uses: abatilo/actions-poetry@v2
2119

2220
- name: Cache Dependencies
23-
uses: actions/cache@v2
24-
id: cache-dependencies
21+
uses: actions/cache@v3
22+
id: cache
2523
with:
2624
path: .venv
27-
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
25+
key: venv-${{ runner.os }}-${{ hashFiles('./poetry.lock') }}
2826

2927
- name: Install Dependencies if cache doesn't hit
30-
if: steps.cache-dependencies.cache-hit != 'true'
28+
if: steps.cache.outputs.cache-hit != 'true'
3129
run: poetry install
3230

3331
- name: Publish to PyPI

.github/workflows/test.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)