Skip to content

[Snyk] Fix for 4 vulnerabilities #94

[Snyk] Fix for 4 vulnerabilities

[Snyk] Fix for 4 vulnerabilities #94

Workflow file for this run

name: Code coverage
on: [push, pull_request]
env:
COVERALLS_REPO_TOKEN: JMrWlp4AZqr735mFBcRyt9LaCgyUwBV3Z
jobs:
run:
runs-on: ubuntu-latest
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
# env:
# OS: ${{ matrix.os }}
# PYTHON: '3.10'
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install environment
run: |
python -m pip install --upgrade pip
pip install -r test-requirements.txt
- name: Run tests and collect coverage
run: pytest --cov --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
# directory: ./coverage/reports/
# env_vars: OS, PYTHON
fail_ci_if_error: true
files: ./coverage.xml
flags: pytest
name: codecov-umbrella
verbose: true
- name: Run tests and collect coverage
run: pytest --cov --cov-report=xml
- name: Coverage run
run: coverage run --source=uom setup.py test
- name: Coveralls post
run: |
coverage report -m
coveralls
# - name: Lint with flake8
# run: |
# pip install flake8
# pip install pylint
# # stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics