-
Notifications
You must be signed in to change notification settings - Fork 4
67 lines (53 loc) · 1.79 KB
/
Copy pathtesting.yml
File metadata and controls
67 lines (53 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Primary testing
on:
workflow_call:
secrets:
S3_LOG_EXTRACTION_PASSWORD:
required: true
CODECOV_CREDENTIALS:
required: true
permissions:
contents: read
env:
S3_LOG_EXTRACTION_PASSWORD: ${{ secrets.S3_LOG_EXTRACTION_PASSWORD }}
jobs:
run:
# Will read on PR dashboard as 'Deploy / Tests / ubuntu'
# Action dashboard identified by 'Primary testing'
# Requirement settings identified as 'Tests / ubuntu'
name: ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: git fetch --prune --unshallow --tags
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Global Setup
run: python -m pip install -U pip
- name: Minimal local installation
run: pip install --no-cache-dir .
- name: Display installed packages and their sources for debugging
run: pip list
- name: Test basic import
run: python -c "import s3_log_extraction"
- name: Full installation
run: pip install --no-cache-dir .[all] --group all
- name: Display installed packages and their sources for debugging
run: pip list
- name: Test basic import
run: python -c "import s3_log_extraction"
- name: Run pytest with coverage and printout coverage for debugging
run: |
pytest tests -m "not remote" -vv -rsx --cov=s3_log_extraction --cov-report xml:./coverage.xml
cat ./coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_CREDENTIALS }}
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
verbose: true