Skip to content

test CI

test CI #31

Workflow file for this run

name: build
on: [push]
jobs:
build:
strategy:
matrix:
os: [windows-latest, ubuntu-20.04]
python-version: ["3.5","3.6", "3.7", "3.8", "3.9"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Set up JDK 11 for x64
if: ${{matrix.os == 'windows-latest'}}
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
architecture: x64
- name: Install dependencies
run: |
pip install pytest pytest-cov
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test
run: |
pytest --cov showjar --cov-report xml
- name: Coverage
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: false # optional (default = false)
- name: Lints
if: ${{matrix.os == 'ubuntu-20.04'}}
uses: deepsourcelabs/test-coverage-action@master
with:
key: python
coverage-file: coverage.xml
dsn: ${{ secrets.DEEPSOURCE_DSN }}
fail-ci-on-error: false