mirror of
https://github.com/ZGCA-Forge/Elevator.git
synced 2025-12-15 13:34:44 +00:00
Update ci
This commit is contained in:
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
@@ -65,6 +65,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pytest -v
|
pytest -v
|
||||||
|
|
||||||
|
- name: Verify documentation builds
|
||||||
|
run: |
|
||||||
|
pip install -e .[docs]
|
||||||
|
cd docs
|
||||||
|
make html
|
||||||
|
|
||||||
# Step 3: Security scan
|
# Step 3: Security scan
|
||||||
security:
|
security:
|
||||||
name: Security scan
|
name: Security scan
|
||||||
@@ -161,21 +167,9 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
python -m pip install flake8 pytest
|
python -m pip install pytest
|
||||||
pip install -e .[dev]
|
pip install -e .[dev]
|
||||||
|
|
||||||
- name: Lint with flake8
|
|
||||||
run: |
|
|
||||||
# stop the build if there are Python syntax errors or undefined names
|
|
||||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
||||||
# exit-zero treats all errors as warnings
|
|
||||||
flake8 . --count --exit-zero --max-line-length=200 --extend-ignore=E203,W503,F401,E402,E721,F841 --statistics
|
|
||||||
|
|
||||||
- name: Type checking with mypy
|
|
||||||
run: |
|
|
||||||
mypy elevator_saga --disable-error-code=unused-ignore
|
|
||||||
continue-on-error: true
|
|
||||||
|
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
pytest
|
pytest
|
||||||
|
|||||||
8
.github/workflows/docs.yml
vendored
8
.github/workflows/docs.yml
vendored
@@ -60,12 +60,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Sphinx documentation
|
- name: Build Sphinx documentation
|
||||||
run: |
|
run: |
|
||||||
# Create docs directory if it doesn't exist
|
cd docs
|
||||||
mkdir -p docs
|
make html
|
||||||
# Placeholder for Sphinx build
|
|
||||||
echo "Documentation build placeholder - configure Sphinx in docs/"
|
|
||||||
# cd docs
|
|
||||||
# make html
|
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v4
|
uses: actions/upload-pages-artifact@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user