Skip to content

Commit

Permalink
feat: add ci workflow for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leomaurodesenv committed Nov 2, 2023
1 parent 63c3f70 commit 921f1cd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 921f1cd

Please sign in to comment.