feat: new validator CERT a.k.a certidao de casamento, nascimento e obito #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- 'br_docs/**' | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
paths: | |
- 'br_docs/**' | |
permissions: | |
contents: read | |
concurrency: | |
group: check-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
tox: | |
name: test with ${{ matrix.py }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
py: | |
- "3.12" | |
- "3.11" | |
- "3.10" | |
- "3.9" | |
os: | |
- ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup python for test ${{ matrix.py }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.py }} | |
- name: Install tox | |
run: python -m pip install tox-gh>=1.2 | |
- name: Setup test suite | |
run: tox -vv --notest | |
- name: Run test suite | |
run: tox --skip-pkg-install | |
codecov: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install . | |
- name: Lint with Ruff | |
run: | | |
pip install ruff | |
ruff --output-format=github . | |
continue-on-error: true | |
- name: Test with pytest | |
run: | | |
pip install pytest pytest-cov | |
pytest --cov br_docs | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4-beta | |
with: | |
flags: smart-tests | |
verbose: true | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |