Skip to content

Commit

Permalink
rename pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
CristianoMafraJunior committed Mar 8, 2024
1 parent 08e390a commit 21f1f79
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on:
[push, pull_request]

jobs:
main:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
fail-fast: false
matrix:
include:
- {name: Python 3.7, python: 3.7, os: ubuntu}
- {name: Python 3.8, python: 3.8, os: ubuntu}
- {name: Python 3.9, python: 3.9-dev, os: ubuntu}
- {name: Python 3.10, python: 3.10.0-beta - 3.10, os: ubuntu}
- {name: "Python 3.9", python: "3.9-dev", os: "ubuntu"}
- {name: "Python 3.10", python: "3.10-dev", os: "ubuntu"}
- {name: "Python 3.11", python: "3.11-dev", os: "ubuntu"}
- {name: "Python 3.12", python: "3.12-dev", os: "ubuntu"}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
Expand All @@ -26,9 +26,12 @@ jobs:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools fpdf2
python -m pip install --upgrade pip setuptools fpdf2 pytest coverage pytest-cov
- name: Test
run: |
python3 -m unittest test/test_brazil_fiscal_report.py
pytest --cov=./xsdata --cov-report=xml --cov-branch --doctest-glob="docs/*.md" test/test_brazil_fiscal_report.py
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v2
with:
flags: smart-tests
verbose: true

0 comments on commit 21f1f79

Please sign in to comment.