File tree Expand file tree Collapse file tree 2 files changed +45
-4
lines changed
Expand file tree Collapse file tree 2 files changed +45
-4
lines changed Original file line number Diff line number Diff line change 1+ name : Run Tests
2+
3+ on :
4+ push :
5+ branches :
6+ - " **" # including all branches before excluding master
7+ - " !master"
8+ - " !main"
9+
10+ jobs :
11+ tests :
12+ name : Test Python ${{ matrix.python-version }}
13+ runs-on : ubuntu-latest
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ python-version : ["3.10", "3.11", "3.12", "3.13"]
18+ steps :
19+ - uses : actions/checkout@v4
20+
21+ - name : Set up Python ${{ matrix.python-version }}
22+ uses : actions/setup-python@v5
23+ with :
24+ python-version : ${{ matrix.python-version }}
25+
26+ - name : Install Poetry
27+ uses : snok/install-poetry@v1
28+ with :
29+ virtualenvs-create : true
30+ virtualenvs-in-project : true
31+
32+ - name : Install dependencies
33+ run : poetry install --with test --no-interaction --no-ansi
34+
35+ - name : Run tests with coverage
36+ run : poetry run poe tests
37+
38+ - name : Upload coverage reports to Codecov
39+ if : matrix.python-version == '3.13'
40+ uses : codecov/codecov-action@v5
41+ with :
42+ token : ${{ secrets.CODECOV_TOKEN }}
43+ slug : ddc/pythonLogs
Original file line number Diff line number Diff line change 44 push :
55 branches : [main, master]
66 tags : ['v*']
7- pull_request :
8- branches : [main, master]
97
108
119jobs :
9391 with :
9492 pattern : python-package-*
9593 path : dist
96- merge-multiple : true
94+ merge-multiple : false
9795
9896 - name : Create Release
9997 uses : softprops/action-gh-release@v2
@@ -120,7 +118,7 @@ jobs:
120118 with :
121119 pattern : python-package-*
122120 path : dist
123- merge-multiple : true
121+ merge-multiple : false
124122
125123 - name : Install twine
126124 run : pip install twine
You can’t perform that action at this time.
0 commit comments