summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2025-10-09 09:29:40 +0300
committerA Farzat <a@farzat.xyz>2025-10-09 09:29:40 +0300
commit6e117b5438413d12cf84860ea5c8e3bfd1727f40 (patch)
tree797ab78a12d9a677849b667bb891205d6a293f53
parent7e2a136db5921755a29fa5c9a1751028688c55cd (diff)
downloadcsca5028-6e117b5438413d12cf84860ea5c8e3bfd1727f40.tar.gz
csca5028-6e117b5438413d12cf84860ea5c8e3bfd1727f40.zip
Add Continuous Integration
-rw-r--r--.github/workflows/ci.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..ddc52e2
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,32 @@
+name: Continuous Integration
+
+on:
+ push:
+ branches: [ deploy, main ]
+ pull_request:
+ branches: [ deploy, main ]
+
+jobs:
+ python-tests:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+
+ - name: Set up Python
+ uses: actions/setup-python@v4
+ with:
+ python-version: '3.13'
+
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
+ pip install mypy
+
+ - name: Run unit tests
+ run: python -m unittest tests/*.py
+
+ - name: Run type checking
+ run: mypy --explicit-package-bases --strict .