File tree Expand file tree Collapse file tree 1 file changed +46
-5
lines changed Expand file tree Collapse file tree 1 file changed +46
-5
lines changed Original file line number Diff line number Diff line change 11name : Meow Package publishing action
22
3- on : [push]
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+
49jobs :
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+ - name : Install hatch dependencies
26+ run : hatch shell
27+
28+
529 test :
30+ needs : pre-setup
631 runs-on : ubuntu-latest
32+ strategy :
33+ matrix :
34+ python-version : ["3.8", "3.9", "3.10"]
735 steps :
8- - run : echo "Testing package initialized.."
9- - name : Testing package
10- run : |
11- twine check dist/*
36+ - run : echo "Setup project.."
37+ - name : Cloning repository
38+ uses : actions/checkout@v2
39+ - name : Setup Python
40+ uses : actions/setup-python@v2
41+ with :
42+ python-version : ${{matrix.python-version}}
43+
44+ - name : Install Hatch
45+ run : pip install hatch
46+ - name : Install hatch dependencies
47+ run : hatch shell
48+
49+ - name : Run tests
50+ run : hatch run test
51+
52+
You can’t perform that action at this time.
0 commit comments