Skip to content

Fix license classifier (#16) #70

Fix license classifier (#16)

Fix license classifier (#16) #70

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Run tests
on:
push:
branches: ["develop", "main"]
pull_request:
branches: ["develop", "main"]
permissions:
contents: read
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with coverage/pytest
run: |
pytest -v --cov=pyaprilaire/ --cov-report=xml --pdb tests/
- name: Coverage
uses: orgoro/coverage@v3
with:
coverageFile: coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}
thresholdNew: 1.0
thresholdModified: 1.0
if: github.event_name == 'pull_request'