Skip to content

chore(deps): bump pillow from 9.3.0 to 10.0.1 in /api #16

chore(deps): bump pillow from 9.3.0 to 10.0.1 in /api

chore(deps): bump pillow from 9.3.0 to 10.0.1 in /api #16

Workflow file for this run

name: tests
on:
push:
branches: main
pull_request:
branches: main
jobs:
pytest:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: [3.8]
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Cache python modules
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pkg-deps-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}-tests
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[test]" --upgrade
- name: Run unittests
run: |
coverage run -m pytest tests/
coverage xml
- uses: actions/upload-artifact@v2
with:
name: coverage-main
path: ./coverage.xml
codecov-upload:
runs-on: ubuntu-latest
needs: pytest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
flags: unittests
fail_ci_if_error: true
headers:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Check the headers
uses: frgfm/validate-python-headers@main
with:
license: 'Apache-2.0'
owner: 'Pyronear'
starting-year: 2019
folders: 'pyrovision,docs,references,.github'
ignores: 'version.py,__init__.py'