@@ -2,104 +2,104 @@ name: CI
22
33on :
44 push :
5- branches : [ main ]
5+ branches : [main]
66 pull_request :
77
88jobs :
99 quality :
1010 name : Code Quality
1111 runs-on : ubuntu-latest
1212 steps :
13- - name : Checkout code
14- uses : actions/checkout@v5
13+ - name : Checkout code
14+ uses : actions/checkout@v5
1515
16- - name : Install uv
17- uses : astral-sh/setup-uv@v3
18- with :
19- version : " latest"
16+ - name : Install uv
17+ uses : astral-sh/setup-uv@v6
18+ with :
19+ version : " latest"
2020
21- - name : Set up Python
22- run : uv python install 3.12
21+ - name : Set up Python
22+ run : uv python install 3.12
2323
24- - name : Cache pre-commit
25- uses : actions/cache@v4
26- with :
27- path : ~/.cache/pre-commit
28- key : ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
24+ - name : Cache pre-commit
25+ uses : actions/cache@v4
26+ with :
27+ path : ~/.cache/pre-commit
28+ key : ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
2929
30- - name : Install dependencies
31- run : uv sync --extra dev --extra test
30+ - name : Install dependencies
31+ run : uv sync --extra dev --extra test
3232
33- - name : Run code quality checks
34- run : |
35- echo "🔍 Running all code quality checks..."
36- uv run pre-commit run --all-files --show-diff-on-failure
33+ - name : Run code quality checks
34+ run : |
35+ echo "🔍 Running all code quality checks..."
36+ uv run pre-commit run --all-files --show-diff-on-failure
3737
3838 test :
3939 name : Test Python 3.12
4040 runs-on : ubuntu-latest
4141 needs : quality
4242
4343 steps :
44- - name : Checkout code
45- uses : actions/checkout@v5
44+ - name : Checkout code
45+ uses : actions/checkout@v5
4646
47- - name : Install uv
48- uses : astral-sh/setup-uv@v3
49- with :
50- version : " latest"
47+ - name : Install uv
48+ uses : astral-sh/setup-uv@v6
49+ with :
50+ version : " latest"
5151
52- - name : Set up Python 3.12
53- run : uv python install 3.12
52+ - name : Set up Python 3.12
53+ run : uv python install 3.12
5454
55- - name : Install dependencies
56- run : uv sync --extra dev --extra test
55+ - name : Install dependencies
56+ run : uv sync --extra dev --extra test
5757
58- - name : Run tests with coverage
59- run : |
60- echo "🧪 Running tests for Python 3.12..."
61- uv run pytest -v
58+ - name : Run tests with coverage
59+ run : |
60+ echo "🧪 Running tests for Python 3.12..."
61+ uv run pytest -v
6262
63- - name : Upload coverage to Codecov
64- uses : codecov/codecov-action@v5
65- with :
66- files : ./coverage.xml
67- flags : unittests
68- name : codecov-umbrella
69- fail_ci_if_error : false
63+ - name : Upload coverage to Codecov
64+ uses : codecov/codecov-action@v5
65+ with :
66+ files : ./coverage.xml
67+ flags : unittests
68+ name : codecov-umbrella
69+ fail_ci_if_error : false
7070
7171 build :
7272 name : Build & Verify Package
7373 runs-on : ubuntu-latest
7474 needs : [quality, test]
7575 steps :
76- - name : Checkout code
77- uses : actions/checkout@v5
78-
79- - name : Install uv
80- uses : astral-sh/setup-uv@v3
81- with :
82- version : " latest"
83-
84- - name : Set up Python
85- run : uv python install 3.12
86-
87- - name : Create virtual environment
88- run : uv venv
89-
90- - name : Build package
91- run : |
92- echo "📦 Building Python package..."
93- uv build
94-
95- - name : Verify package installation
96- run : |
97- echo "✅ Verifying package can be installed..."
98- uv pip install dist/*.whl
99- uv run python -c "import eoapi_notifier; print('Package installed successfully')"
100-
101- - name : Upload build artifacts
102- uses : actions/upload-artifact@v4
103- with :
104- name : python-package-distributions
105- path : dist/
76+ - name : Checkout code
77+ uses : actions/checkout@v5
78+
79+ - name : Install uv
80+ uses : astral-sh/setup-uv@v6
81+ with :
82+ version : " latest"
83+
84+ - name : Set up Python
85+ run : uv python install 3.12
86+
87+ - name : Create virtual environment
88+ run : uv venv
89+
90+ - name : Build package
91+ run : |
92+ echo "📦 Building Python package..."
93+ uv build
94+
95+ - name : Verify package installation
96+ run : |
97+ echo "✅ Verifying package can be installed..."
98+ uv pip install dist/*.whl
99+ uv run python -c "import eoapi_notifier; print('Package installed successfully')"
100+
101+ - name : Upload build artifacts
102+ uses : actions/upload-artifact@v4
103+ with :
104+ name : python-package-distributions
105+ path : dist/
0 commit comments