Skip to content

Commit

Permalink
Merge pull request #2 from CristianoMafraJunior/main
Browse files Browse the repository at this point in the history
add ci test
  • Loading branch information
antoniospneto authored Mar 7, 2024
2 parents b1a2f34 + 22deccd commit 366cbb1
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -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
Empty file added test/__init__.py
Empty file.

0 comments on commit 366cbb1

Please sign in to comment.