Skip to content

Commit cfe2f42

Browse files
authored
V4.0.1 Workflows (#2)
* V4.0.1 * V4.0.1 * V4.0.1 --------- Co-authored-by: ddc <[email protected]>
1 parent 8bf28bd commit cfe2f42

File tree

2 files changed

+45
-4
lines changed

2 files changed

+45
-4
lines changed

.github/workflows/tests.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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

.github/workflows/workflow.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches: [main, master]
66
tags: ['v*']
7-
pull_request:
8-
branches: [main, master]
97

108

119
jobs:
@@ -93,7 +91,7 @@ jobs:
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

0 commit comments

Comments
 (0)