Skip to content

Commit

Permalink
Merge pull request #5 from GMDSantana/gmds-fixes
Browse files Browse the repository at this point in the history
Add workflow
  • Loading branch information
GMDSantana authored Nov 17, 2024
2 parents a5201df + d907e41 commit 90dfa96
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 9 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"

35 changes: 35 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Python Tests

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- name: Check out the code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run tests
run: pytest --cov=crivo

12 changes: 3 additions & 9 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
# Testing framework
pytest>=7.0
pytest-mock>=3.0
pytest-cov>=3.0

# Code style and linting
flake8>=5.0

# Import sorting
flake8-import-order>=0.18
isort>=5.10

# Code formatting
black>=23.0
# Runtime dependencies
requests>=2.26

0 comments on commit 90dfa96

Please sign in to comment.