This commit is contained in:
39
.gitea/workflows/ci.yml
Normal file
39
.gitea/workflows/ci.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
|
||||
- name: Install deps
|
||||
run: |
|
||||
python -m pip install -U pip
|
||||
pip install -r requirements.txt
|
||||
pip install -r requirements-dev.txt
|
||||
|
||||
- name: Lint (ruff)
|
||||
run: ruff check .
|
||||
|
||||
- name: Tests (pytest)
|
||||
run: pytest -q
|
||||
|
||||
- name: Build scripts bundle (CI artifact)
|
||||
run: |
|
||||
mkdir -p dist
|
||||
zip -r dist/SDSAT-scripts.zip scripts pyproject.toml requirements.txt
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: SDSAT-scripts
|
||||
path: dist/SDSAT-scripts.zip
|
||||
Reference in New Issue
Block a user