File tree Expand file tree Collapse file tree 4 files changed +64
-77
lines changed
Expand file tree Collapse file tree 4 files changed +64
-77
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ main, develop ]
6+ pull_request :
7+ branches : [ main, develop ]
8+
9+ jobs :
10+ lint :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - name : Set up Python
16+ uses : actions/setup-python@v5
17+ with :
18+ python-version : ' 3.12'
19+
20+ - name : Install UV
21+ run : |
22+ curl -LsSf https://astral.sh/uv/install.sh | sh
23+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
24+
25+ - name : Install dependencies
26+ run : |
27+ uv pip install --system -e .
28+ uv pip install --system pytest ruff black mypy
29+
30+ - name : Run linting
31+ run : make lint
32+
33+ test :
34+ runs-on : ubuntu-latest
35+ strategy :
36+ matrix :
37+ python-version : ['3.12']
38+ steps :
39+ - uses : actions/checkout@v4
40+
41+ - name : Set up Python ${{ matrix.python-version }}
42+ uses : actions/setup-python@v5
43+ with :
44+ python-version : ${{ matrix.python-version }}
45+
46+ - name : Install UV
47+ run : |
48+ curl -LsSf https://astral.sh/uv/install.sh | sh
49+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
50+
51+ - name : Install dependencies
52+ run : |
53+ uv pip install --system -e .
54+ uv pip install --system pytest
55+
56+ - name : Run all tests
57+ run : make test
58+ env :
59+ # Integration tests will use real APIs
60+ PYTHONPATH : ${{ github.workspace }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# Makefile for Satellite Data Acquisition development tasks
22# Author: Peter Kongstad
33
4- .PHONY : help install install-dev install-uv install-dev-uv test test-fast test-cov lint format check clean pre-commit docker docker-build docker-run
4+ .PHONY : help install install-dev install-uv install-dev-uv test test-fast test-cov lint format check clean docker docker-build docker-run
55
66help :
77 @echo " Satellite Data Acquisition Development Commands"
1414 @echo " Setup (pip):"
1515 @echo " make install Install package and dependencies"
1616 @echo " make install-dev Install with development dependencies"
17- @echo " make pre-commit Install pre-commit hooks"
1817 @echo " "
1918 @echo " Docker:"
2019 @echo " make docker-build Build Docker image"
@@ -42,17 +41,14 @@ install:
4241
4342install-dev :
4443 pip install -e .
45- pip install pytest ruff black pre-commit ipykernel tbump
44+ pip install pytest ruff black ipykernel tbump
4645
4746install-uv :
4847 uv pip install -e .
4948
5049install-dev-uv :
5150 uv pip install -e .
52- uv pip install pytest ruff black pre-commit ipykernel tbump
53-
54- pre-commit :
55- pre-commit install
51+ uv pip install pytest ruff black ipykernel tbump
5652
5753docker-build :
5854 docker build -t sat-data-acquisition .
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ Python package for downloading satellite imagery from multiple sources with a st
44
55![ Python] ( https://img.shields.io/badge/python-3.12+-blue.svg )
66![ License] ( https://img.shields.io/badge/license-MIT-green.svg )
7+ [ ![ CI] ( https://img.shields.io/github/actions/workflow/status/Kongstad/sat-data-acquisition/ci.yml?branch=main )] ( https://github.com/Kongstad/sat-data-acquisition/actions )
78
89## Table of Contents
910
You can’t perform that action at this time.
0 commit comments