File tree Expand file tree Collapse file tree 2 files changed +56
-19
lines changed Expand file tree Collapse file tree 2 files changed +56
-19
lines changed Original file line number Diff line number Diff line change 77
88
99jobs :
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 :
Original file line number Diff line number Diff line change 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/*
You can’t perform that action at this time.
0 commit comments