From 22deccd0f28978195af3b85cdd6b9cb9b291b013 Mon Sep 17 00:00:00 2001 From: CristianoMafraJunior Date: Thu, 7 Mar 2024 16:00:22 -0300 Subject: [PATCH] add config test --- .github/workflows/tests.yml | 34 ++++++++++++++++++++++++++++++++++ test/__init__.py | 0 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/tests.yml create mode 100644 test/__init__.py diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..297fe14 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,34 @@ +name: tests + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + tests: + name: ${{ matrix.name }} + runs-on: ${{ matrix.os }}-latest + strategy: + 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} + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip setuptools fpdf2 + - name: Test + run: | + python3 -m unittest test/test_PyFiscalReport.py + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 0000000..e69de29