From 921f1cd35be8cc7e9b0cf97b69eb7d048b3cb2d5 Mon Sep 17 00:00:00 2001 From: leomaurodesenv Date: Thu, 2 Nov 2023 18:31:18 -0300 Subject: [PATCH] feat: add ci workflow for tests --- .github/workflows/continuous-integration.yml | 22 ++++++++++++++++++++ .pre-commit-config.yaml | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/continuous-integration.yml diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml new file mode 100644 index 0000000..df52068 --- /dev/null +++ b/.github/workflows/continuous-integration.yml @@ -0,0 +1,22 @@ +name: "Continuous Integration" + +run-name: Running tests on "${{ github.ref }}" by "${{ github.actor }}" + +on: + push: + # Ignore following branches + branches-ignore: + - "dev/*" + +jobs: + # Run pre-commit hooks + pre-commit: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: "3.10" + cache: "pip" # caching pip dependencies + - run: pip install -r requirements.txt + - run: pre-commit run --all-files diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 48ee030..c98af5a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,6 +3,8 @@ repos: rev: v2.3.0 hooks: - id: check-yaml + - id: check-added-large-files + - id: check-docstring-first - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/psf/black