Skip to content

Proxy without usr/psw authentication and IP-based auntenthication #110

Proxy without usr/psw authentication and IP-based auntenthication

Proxy without usr/psw authentication and IP-based auntenthication #110

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python application
on:
push:
branches:
- develop
- main
paths-ignore:
- '**.md'
- 'docs/**'
pull_request:
branches:
- develop
- main
paths-ignore:
- '**.md'
- 'docs/**'
jobs:
build:
name: Testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-mock pytest-cov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
pytest
- name: Generate coverage report
run: |
pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}