Google Maps filter (with passing linter and type checker) #610
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.8", "3.9", "3.10.7"] | |
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 |