intial SOAP support for NF-e #327
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: tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
- cron: '0 5 * * 2' | |
jobs: | |
tests: | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- {name: Python 3.8, python: '3.8', os: ubuntu} # (Odoo 14.0) | |
- {name: Python 3.9, python: '3.9', os: ubuntu} | |
- {name: Python 3.10, python: '3.10', os: ubuntu} | |
- {name: Python 3.11, python: '3.11', os: ubuntu} | |
- {name: Python 3.12, python: '3.12', os: ubuntu} | |
- {name: Python 3.13, python: '3.13', os: ubuntu} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools pytest pytest-xdist xmlschema pytest-cov | |
python -m pip install .[test] | |
- name: Test | |
run: | | |
pytest --cov --cov-report=xml --cov-branch --doctest-glob="docs/*.md" | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
verbose: true | |
pre-commit: | |
name: Pre-commit Hooks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- uses: pre-commit/action@v3.0.1 | |
check-package: | |
name: Build & Inspect Package | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install build check-wheel-contents | |
- name: Build the package | |
run: | | |
python -m build | |
- name: Check wheel contents (ignore W002) | |
run: | | |
check-wheel-contents dist/*.whl --ignore W002 |