-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (44 loc) · 1.25 KB
/
collect.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
name: Color Collector
on:
pull_request:
branches:
- main
push:
branches:
- main
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '53 14 * * 1'
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
pipeline:
name: Pipeline
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- shell: bash
run: |
echo " start at"
echo $PWD
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- shell: bash
run: |
wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
echo 'which google-chrome'
which google-chrome
echo 'google-chrome --version'
google-chrome --version
- uses: nanasess/setup-chromedriver@v2
# with:
# Optional: do not specify to match Chrome's version
# chromedriver-version: '88.0.4324.96'
- run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional