diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml new file mode 100644 index 0000000..48cfb55 --- /dev/null +++ b/.github/workflows/ci-tests.yml @@ -0,0 +1,33 @@ +name: Tests +on: + pull_request: + branches: ["main", "dev"] + workflow_dispatch: + +jobs: + tests: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-latest, windows-latest ] + python-version: [ '3.12' ] + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: pip + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install -e .[dev] + - name: Run linting + run: | + flake8 ./src/ + + - name: Run tests + run: | + pytest diff --git a/.gitignore b/.gitignore index 2ed2400..3abd807 100644 --- a/.gitignore +++ b/.gitignore @@ -176,7 +176,7 @@ cython_debug/ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. -#.idea/ +.idea/ # Abstra # Abstra is an AI-powered process automation framework. diff --git a/pyproject.toml b/pyproject.toml index a5be416..81d270d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,4 +37,4 @@ Issues = "https://github.com/pim-n/pg-rad/issues" [project.optional-dependencies] -dev = ["pytest", "mkinit", "notebook", "mkdocs-material", "mkdocstrings-python", "mkdocs-jupyter"] \ No newline at end of file +dev = ["pytest", "mkinit", "notebook", "mkdocs-material", "mkdocstrings-python", "mkdocs-jupyter", "flake8"] \ No newline at end of file