github action for CI added
This commit is contained in:
parent
cb742edb4d
commit
3fb5471c4e
|
@ -0,0 +1,44 @@
|
|||
name: CI Pipeline
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [3.10, 3.11, 3.12, 3.13]
|
||||
|
||||
steps:
|
||||
# Step 1: Check out the code from the repository
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# Step 2: Set up Python
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
# Step 3: Install dependencies
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -e .[dev]
|
||||
|
||||
# Step 4: Lint with flake8
|
||||
- name: Lint code with flake8
|
||||
run: flake8
|
||||
|
||||
# Step 5: Check types with mypy
|
||||
- name: Type checking with mypy
|
||||
run: mypy
|
||||
|
||||
# Step 6: Run tests
|
||||
- name: Run tests with pytest
|
||||
run: pytest
|
Loading…
Reference in New Issue