Skip to content

Update main.yaml login shell for pytest-cov run step #7

Update main.yaml login shell for pytest-cov run step

Update main.yaml login shell for pytest-cov run step #7

Workflow file for this run

name: Python application
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint:
runs-on: ubuntu-latest
container: python:3.8
steps:
- uses: actions/checkout@v3
- name: Install black
run: pip install black
- name: Run black
run: black --check .
testcov:
runs-on: ubuntu-latest
container: python:3.8
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
use-only-tar-bz2: true
auto-update-conda: true
activate-environment: myenv
environment-file: env/face_detection_age_from-history.yaml
auto-activate-base: false
- name: Install dependencies
shell: bash -l {0}
run: |
apt-get update && apt-get install -y libgl1
pip install pytest pytest-cov
- name: Run pytest-cov
shell: bash -l {0}
run: pytest . --cov --disable-pytest-warnings
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}