feat: add some more tests (#217) #687
  
    
      This file contains hidden or 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: Json2xml | |
| on: [push, pull_request] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: [pypy-3.10, '3.10', '3.11' , '3.12', '3.13.0-rc.2'] | |
| os: [ | |
| ubuntu-latest, | |
| windows-latest, | |
| macos-latest, | |
| ] | |
| include: | |
| # Add exact version 3.14.0-alpha.0 for ubuntu-latest only | |
| - python-version: '3.14.0-alpha.0' | |
| os: ubuntu-latest | |
| exclude: | |
| # Exclude other OSes with Python 3.14.0-alpha.0 | |
| - python-version: '3.14.0-alpha.0' | |
| os: windows-latest | |
| - python-version: '3.14.0-alpha.0' | |
| os: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4.1.7 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5.2.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| allow-prereleases: true | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install --upgrade -r requirements-dev.txt | |
| pip install . | |
| - name: Unit tests | |
| run: | | |
| coverage run -m pytest | |
| coverage xml | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| fail_ci_if_error: true # optional (default = false) | |
| name: codecov-umbrella # optional | |
| token: ${{ secrets.CODECOV_TOKEN }} # required | |
| verbose: true # optional (default = false) |