Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ad5816dc2d | |||
| 53724c1671 | |||
| 401d4e2717 | |||
| eea54dd203 | |||
| da0f082b45 | |||
| 5e6997cbd6 |
+15
-7
@@ -17,21 +17,29 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
run: |
|
||||
apt-get update && apt-get install -y python3 python3-venv || true
|
||||
python3 --version
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python3 -m venv .venv
|
||||
source .venv/bin/activate
|
||||
pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
pip install -r requirements-dev.txt
|
||||
|
||||
- name: Lint with ruff
|
||||
run: ruff check .
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
ruff check .
|
||||
|
||||
- name: Format check with ruff
|
||||
run: ruff format --check .
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
ruff format --check .
|
||||
|
||||
- name: Run tests
|
||||
run: pytest -q
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
pytest -q
|
||||
|
||||
+10
@@ -2,12 +2,22 @@
|
||||
.DS_Store
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*.pyo
|
||||
.venv/
|
||||
venv/
|
||||
.*venv*/
|
||||
.pytest_cache/
|
||||
.mypy_cache/
|
||||
.ruff_cache/
|
||||
.coverage*
|
||||
coverage.xml
|
||||
.vscode/
|
||||
.idea/
|
||||
memory/
|
||||
*.log
|
||||
*.tmp
|
||||
*.swp
|
||||
*.swo
|
||||
*.bak
|
||||
*.orig
|
||||
*.rej
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
# AOC v1.7.16 Release Notes
|
||||
|
||||
**Release Date:** 2026-04-24
|
||||
|
||||
## Infrastructure & Maintenance
|
||||
|
||||
### Gitea Actions CI Fix
|
||||
|
||||
The CI workflow (`.gitea/workflows/ci.yml`) has been reworked for compatibility with Gitea Actions (`act_runner`):
|
||||
|
||||
- **Removed** `actions/setup-python@v5` — incompatible with self-hosted Gitea (relies on GitHub's tool cache API)
|
||||
- **Added** system Python installation via `apt-get install python3 python3-venv`
|
||||
- **Uses a virtual environment** inside the job to avoid PEP 668 `externally-managed-environment` errors
|
||||
- All steps (`pip install`, `ruff check`, `ruff format`, `pytest`) now activate the venv explicitly
|
||||
|
||||
### Repository Cleanup
|
||||
|
||||
- **Expanded `.gitignore`** to cover all venv variants (`.*venv*/`), `.ruff_cache/`, and common temp/backup files
|
||||
- **Removed** temporary working directories (`backend/.venv_ci/`, `__pycache__/`)
|
||||
|
||||
## Files Changed
|
||||
|
||||
| File | Change |
|
||||
|------|--------|
|
||||
| `.gitea/workflows/ci.yml` | Complete rewrite for Gitea Actions compatibility |
|
||||
| `.gitignore` | Expanded patterns for venvs, caches, temp files |
|
||||
| `VERSION` | Bumped to 1.7.16 |
|
||||
|
||||
## Test Results
|
||||
|
||||
- **80/80 pytest tests passing**
|
||||
- Ruff lint/format clean
|
||||
- CI green on Gitea Actions
|
||||
|
||||
## Docker Image
|
||||
|
||||
```
|
||||
git.cqre.net/cqrenet/aoc-backend:v1.7.16
|
||||
```
|
||||
Reference in New Issue
Block a user