Skip to content

fix: resolve layout leak and duplicate feature card (#395) #747

fix: resolve layout leak and duplicate feature card (#395)

fix: resolve layout leak and duplicate feature card (#395) #747

Workflow file for this run

# .github/workflows/ci.yml
#
# Continuous Integration for DevPath
# Runs on every pull request and every push to main.
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
types: [ opened, synchronize, reopened ]
jobs:
# ------------------------------------------------------------
# Lint Job
# ------------------------------------------------------------
lint:
name: Lint (flake8)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install flake8
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Run flake8
run: |
flake8 . \
--exit-zero \
--max-line-length=120 \
--ignore=E402,E221
# ------------------------------------------------------------
# Test Job
# ------------------------------------------------------------
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
needs: lint
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.11", "3.12" ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run test suite
run: |
python tests/test_basic.py
- name: Run pytest
run: |
pytest tests/ -v --tb=short