Skip to content

Commit 39659e9

Browse files
Merge pull request #163 from scality/improvement/PTFE-2836-retry-workflow-action
Improvement/ptfe 2836 retry workflow action
2 parents 3fc90e5 + a4af28c commit 39659e9

File tree

7 files changed

+2359
-0
lines changed

7 files changed

+2359
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Test Retry Workflow Action
2+
3+
on:
4+
push:
5+
paths:
6+
- 'action-retry-workflow/**'
7+
- '.github/workflows/test-retry-workflow.yaml'
8+
pull_request:
9+
paths:
10+
- 'action-retry-workflow/**'
11+
- '.github/workflows/test-retry-workflow.yaml'
12+
13+
jobs:
14+
test-logic:
15+
name: Test Python Logic
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.14'
25+
26+
- name: Install Python dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install pytest pytest-cov
30+
31+
- name: Run Python tests with coverage
32+
working-directory: action-retry-workflow
33+
run: |
34+
python3 -m pytest test_retry_workflow.py \
35+
--cov=retry_workflow \
36+
--cov-report=term-missing

action-retry-workflow/.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
__pycache__/
2+
*.py[cod]
3+
*$py.class
4+
.pytest_cache/
5+
*.swp
6+
*.swo
7+
*~
8+
.DS_Store
9+
10+
# Node.js
11+
node_modules/
12+
package-lock.json
13+
.mock-gh-data.json
14+
coverage/

0 commit comments

Comments
 (0)