-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproduction_v2.yml
More file actions
69 lines (61 loc) · 1.77 KB
/
production_v2.yml
File metadata and controls
69 lines (61 loc) · 1.77 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Production Regression v2 w
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
env:
PY_COLORS: "1"
runs-on: ubuntu-20.04
strategy:
fail-fast: false
max-parallel: 6
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup Chrome and ChromeDriver
uses: browser-actions/setup-chrome@latest
with:
chrome-version: stable
# Caching Step for pip dependencies
- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
# Skip installation if cache was hit
if: steps.cache-pip.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade wheel
pip install -r requirements.txt
- name: Install SeleniumBase
run: |
python setup.py install
- name: Check the console scripts interface
run: |
seleniumbase
sbase
- name: Make sure pytest is working
run: |
echo "def test_1(): pass" > nothing.py
pytest nothing.py
- name: Make sure nosetests is working
run: |
echo "def test_2(): pass" > nothing2.py
nosetests nothing2.py
# NYPL tests and the rest of your steps...
- name: Run all tests
continue-on-error: true
run: |
pytest examples/nypl_tests --headless --browser=chrome --rs -v -s -n=6 --reruns=2 --reruns-delay=1