-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (48 loc) · 1.36 KB
/
integration-tests.yml
File metadata and controls
56 lines (48 loc) · 1.36 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
name: Integration Tests
permissions:
contents: read
on:
push:
branches: [ main ]
paths:
- 'src/**/*.py'
- 'tests/**/*.py'
- 'pyproject.toml'
- '.github/workflows/integration-tests.yml'
pull_request:
branches: [ main ]
paths:
- 'src/**/*.py'
- 'tests/**/*.py'
- 'pyproject.toml'
- '.github/workflows/integration-tests.yml'
jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- name: Set up Python 3.12
run: uv python install 3.12
- name: Install all dependencies
run: uv sync --group all_loaders --group test --group dev
- name: Run integration tests with coverage
env:
USE_TESTCONTAINERS: "true"
TESTCONTAINERS_RYUK_DISABLED: "true"
run: |
uv run pytest tests/integration/ -v --tb=short -m "integration" \
-k "not snowflake" \
--cov=src/amp/loaders --cov-report=xml --cov-report=term-missing
- name: Upload coverage reports
uses: codecov/codecov-action@v4
if: always()
with:
file: ./coverage.xml
flags: integration
name: codecov-integration
fail_ci_if_error: false