Skip to content
Merged
Changes from 1 commit
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
60 changes: 60 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: CI

on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

jobs:
test:
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'
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest ruff
Comment thread
GaneshPatil7517 marked this conversation as resolved.
Outdated

- name: Run linter (ruff)
run: |
ruff check . --select=E9,F63,F7,F82 --output-format=github \
--exclude="Dockerfile.*" \
--exclude="linktest/" \
--exclude="measurements/" \
--exclude="0mq/" \
--exclude="ratc/"
# E9: Runtime errors (syntax errors, etc.)
# F63: Invalid print syntax
# F7: Syntax errors in type comments
# F82: Undefined names in __all__
# Excludes: Dockerfiles (not Python), linktest (symlinks),
# measurements/0mq/ratc (config-dependent experimental scripts)

- name: Run tests (pytest)
run: |
pytest --tb=short -q \
--ignore=measurements/ \
--ignore=0mq/ \
--ignore=ratc/ \
--ignore=linktest/ \
|| true
# Allow pytest to pass even if no tests are collected yet
# Remove "|| true" once proper tests are added
Comment thread
GaneshPatil7517 marked this conversation as resolved.
Outdated
# Ignores: experimental/config-dependent scripts

- name: Validate Dockerfile build
run: |
docker build -f Dockerfile.py -t concore-py-test .
Comment thread
GaneshPatil7517 marked this conversation as resolved.
# Validates that Dockerfile.py can be built successfully
# Does not push the image
Loading