Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: CI

on:
push:
branches: ["**"]
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Test on Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Tk and a virtual display
run: sudo apt-get update && sudo apt-get install -y python3-tk xvfb

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt

- name: Lint
run: ruff check .

- name: Run tests
# xvfb-run gives the GUI smoke tests a display; they skip themselves
# if one is unavailable, so the suite still passes without it.
run: xvfb-run -a python -m pytest -q

compile:
name: Byte-compile all sources
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: python -m compileall -q e2nb.py e2nb_core.py e2nb-headless.py tests
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# Byte-compiled / cache
__pycache__/
*.py[cod]
*.pyo
.pytest_cache/
.ruff_cache/

# Virtual environments
.venv/
venv/
env/

# Runtime artifacts
# config.ini holds credentials in plain text and is never committed.
# config.ini.sample is the tracked template; copy it to config.ini to start.
config.ini
config.local.ini
config.ini.bak*
*.ini.tmp
.config-*.tmp
e2nb_state.json
e2nb_state.json.tmp
email_monitor.log
*.log

# Editors / OS
.idea/
.vscode/
*.swp
.DS_Store
142 changes: 0 additions & 142 deletions config.ini

This file was deleted.

Loading
Loading