Skip to content

Bump certifi from 2022.12.7 to 2023.7.22 #36

Bump certifi from 2022.12.7 to 2023.7.22

Bump certifi from 2022.12.7 to 2023.7.22 #36

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: CI build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install flake8 pytest pytest-flask build pytest-cov
- name: Lint, test, generate artifacts and upload
run: |
# 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
export PYTHONPATH=${PYTHONPATH}:.
pytest --cov=./ --cov-report=xml
python -m build
cd dist && echo "hashes=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v3
with:
path: ./dist
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml,./coverage1.xml,./coverage2.xml,!./cache
flags: unittests # optional
fail_ci_if_error: true
ignore: setup.py