Skip to content

Commit 5170e42

Browse files
committed
chore(actions):yml file add
1 parent 213d9d0 commit 5170e42

File tree

2 files changed

+56
-19
lines changed

2 files changed

+56
-19
lines changed

.github/workflows/package-publish.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,7 @@ on:
77

88

99
jobs:
10-
pre-setup:
11-
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
python-version: ["3.8", "3.9", "3.10"]
15-
steps:
16-
- run: echo "Setup project.."
17-
- name: Cloning repository
18-
uses: actions/checkout@v2
19-
- name: Setup Python
20-
uses: actions/setup-python@v2
21-
with:
22-
python-version: ${{matrix.python-version}}
23-
- name: Install Hatch
24-
run: pip install hatch
25-
26-
27-
test:
28-
needs: pre-setup
10+
publish:
2911
runs-on: ubuntu-latest
3012
strategy:
3113
matrix:

.github/workflows/test.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Meow Package publishing action
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
9+
jobs:
10+
pre-setup:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.8", "3.9", "3.10"]
15+
steps:
16+
- run: echo "Setup project.."
17+
- name: Cloning repository
18+
uses: actions/checkout@v2
19+
- name: Setup Python
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{matrix.python-version}}
23+
- name: Install Hatch
24+
run: pip install hatch
25+
26+
27+
test:
28+
needs: pre-setup
29+
runs-on: ubuntu-latest
30+
strategy:
31+
matrix:
32+
python-version: ["3.8", "3.9", "3.10"]
33+
steps:
34+
- run: echo "Setup project.."
35+
- name: Cloning repository
36+
uses: actions/checkout@v2
37+
- name: Setup Python
38+
uses: actions/setup-python@v2
39+
with:
40+
python-version: ${{matrix.python-version}}
41+
42+
- name: Install Hatch
43+
run: pip install hatch
44+
45+
- name: Install twin
46+
run: pip install twine
47+
48+
- name: Run tests
49+
run: hatch run test:pytest
50+
51+
- name: Build package
52+
run: hatch build
53+
54+
- name: Test package
55+
run: twine check dist/*

0 commit comments

Comments
 (0)