-
Notifications
You must be signed in to change notification settings - Fork 8
45 lines (39 loc) · 1.29 KB
/
main.yml
File metadata and controls
45 lines (39 loc) · 1.29 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
# This workflow will do a clean installation of node dependencies, cache/restore them,
# and build the source code on node version 10.x and run tests using pytest and Selenium via Conda.
name: Pytests Using Selenium in Conda
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
Tests:
runs-on: ubuntu-latest
env:
DB_CONN: ${{secrets.DB_CONN}}
SECRET_KEY: ${{secrets.SECRET_KEY}}
SESSION_NAME: ${{secrets.SESSION_NAME}}
strategy:
matrix:
node-version: [10.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install conda and dependencies in conda env
run: $CONDA/bin/conda env update --file "$GITHUB_WORKSPACE/tests/pytests/environment.yml" --name base
- name: Test with pytest
run: |
npm start &
$CONDA/bin/pytest -s -n=6 --capture=tee-sys