-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 745 Bytes
/
ci.yml
File metadata and controls
39 lines (31 loc) · 745 Bytes
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
name: Python Selenium CI
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
RUN_ENV: ci # 设置环境变量
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install ChromeDriver
run: |
sudo apt-get update
sudo apt-get install -y chromium-chromedriver
- name: Debug ChromeDriver
run: |
which chromedriver
chromedriver --version
- name: Run tests
run: python -m pytest