Skip to content

Commit a9e819c

Browse files
committed
Merge branch 'main' into readme_improvements
Merge remote-tracking branch 'origin/main' into readme_improvements
2 parents 7e6e9f6 + f1880ab commit a9e819c

34 files changed

+1576
-1213
lines changed

.github/workflows/config-validator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# github action to run commit-msg hook on pull request commits and push commits to master branch
2-
name: config-validator
2+
name: Validate sample config
33
on: pull_request
44
jobs:
55
config-validator:

.github/workflows/unit-tests.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Unit Tests and Lint
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
python-version: ['3.8', '3.9', '3.10', '3.11']
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Set up Python ${{ matrix.python-version }}
12+
uses: actions/setup-python@v4
13+
with:
14+
python-version: ${{ matrix.python-version }}
15+
- name: Install dependencies
16+
run: |
17+
python -m pip install --upgrade pip
18+
pip install pytest
19+
pip install -r requirements.txt
20+
- name: Ensure Config
21+
run: cp config.json.sample config.json
22+
- name: Ensure git pat token
23+
shell: bash
24+
env:
25+
CUSTOM_GITHUB_ACTIONS_PAT: ${{ secrets.CUSTOM_GITHUB_ACTIONS_PAT }}
26+
run: |
27+
sed -i "s|https://github.com/browserstack/enigma-access-modules.git|https://qwe:[email protected]/browserstack/enigma-access-modules.git|g" config.json
28+
- name: Setup access modules code base
29+
run: python -m scripts.clone_access_modules
30+
- name: Ensure access modules dependencies
31+
run: |
32+
pip install -r Access/access_modules/requirements.txt --no-cache-dir --ignore-installed
33+
- name: Lint code base
34+
run: python -m pylama Access/accessrequest_helper.py scripts
35+
- name: Test with pytest
36+
run: python -m pytest -v --cov --disable-warnings

0 commit comments

Comments
 (0)