From d7485537114cdd208b5530d8c0bed0d39baf0fef Mon Sep 17 00:00:00 2001 From: Nicolas Date: Tue, 13 May 2025 09:33:22 +0200 Subject: [PATCH] github action for CI added --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4d2c83b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +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: + - name: Check out code + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -e .[dev] + + - name: Lint code with flake8 + run: flake8 + + - name: Type checking with mypy + run: mypy + + - name: Run tests with pytest + run: pytest \ No newline at end of file