File tree Expand file tree Collapse file tree 2 files changed +45
-5
lines changed
Expand file tree Collapse file tree 2 files changed +45
-5
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 @@ -3,9 +3,6 @@ name: CI/CD Pipeline
33on :
44 push :
55 branches : [main, master]
6- tags : ['v*']
7- pull_request :
8- branches : [main, master]
96
107
118jobs :
8279 name : Create Release
8380 runs-on : ubuntu-latest
8481 needs : build
85- if : startsWith(github.ref, 'refs/tags/v')
82+ # if: startsWith(github.ref, 'refs/tags/v')
8683 permissions :
8784 contents : write
8885 steps :
@@ -110,7 +107,7 @@ jobs:
110107 name : Publish to PyPI
111108 runs-on : ubuntu-latest
112109 needs : release
113- if : startsWith(github.ref, 'refs/tags/v')
110+ # if: startsWith(github.ref, 'refs/tags/v')
114111 environment : release
115112 permissions :
116113 id-token : write
You can’t perform that action at this time.
0 commit comments