Skip to content

2captcha/amazon waf #850

2captcha/amazon waf

2captcha/amazon waf #850

Workflow file for this run

name: Tests
#############################
# Start the job on all push #
#############################
on:
push:
branches:
- 'main'
pull_request:
jobs:
tests:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
environment: test
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: browser-actions/setup-chrome@latest
with:
chrome-version: stable
- name: Install dependencies
run: |
pip install --upgrade pip
pip install pipenv
python --version; pip --version; pipenv --version
pipenv requirements > requirements.txt
pip install -r requirements.txt
- name: Run tests
run: coverage run
env:
FLATHUNTER_HEADLESS_BROWSER: true
FLATHUNTER_2CAPTCHA_KEY: ${{ secrets.TWOCAPTCHA_API_KEY }}
WDM_LOCAL: 1
CHROMIUM_BIN: /opt/hostedtoolcache/chromium/stable/x64/chrome
- name: Run codecov
if: ${{ success() }}
uses: codecov/codecov-action@v3