Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6454b79270 | |||
| 354e54a6d3 | |||
| 8d5b48e100 |
@@ -23,23 +23,24 @@ jobs:
|
||||
|
||||
- name: Lint + Tests
|
||||
run: |
|
||||
ruff check .
|
||||
ruff check . --fix
|
||||
pytest -q
|
||||
|
||||
- name: Build SDSAT tar.gz with metadata (no __init__)
|
||||
run: |
|
||||
set -eux
|
||||
|
||||
mkdir -p dist buildtmp/{bin,logs,update}
|
||||
mkdir -p dist buildtmp/
|
||||
|
||||
# Copie uniquement le contenu de scripts/ dans buildtmp/bin
|
||||
cp -r scripts/. buildtmp/bin/
|
||||
cp -r scripts/. buildtmp/
|
||||
|
||||
# Exclure __init__.py
|
||||
find buildtmp/bin -name "__init__.py" -delete
|
||||
# Exclure __init__.py and remove buildtmp/__pycache__
|
||||
find buildtmp/ -name "__init__.py" -delete
|
||||
rm -R "buildtmp/__pycache__"
|
||||
|
||||
# Metadata
|
||||
cat > buildtmp/update/BUILD_INFO.txt <<EOF
|
||||
cat > buildtmp/BUILD_INFO.txt <<EOF
|
||||
REPO=${{ gitea.event.repository.name }}
|
||||
TAG=${{ gitea.ref_name }}
|
||||
COMMIT=${{ gitea.sha }}
|
||||
|
||||
Reference in New Issue
Block a user