forked from mordax7/flathunter
-
Notifications
You must be signed in to change notification settings - Fork 183
47 lines (43 loc) · 1.25 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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