Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
150549a
feat: Adding linter changes to pass the check
vedharish May 19, 2023
647b9c5
refector: changes for line-endings
vedharish May 19, 2023
ffb5162
refactor: adding scripts to linter
vedharish May 19, 2023
fbe22a1
fix: github actions script to use correct config
vedharish May 21, 2023
d4fc93c
fix: fix github actions to clone modules before tests
vedharish May 21, 2023
651b552
fix: ensure no duplicate modules while mounting and cloning
vedharish May 22, 2023
e5df5ce
fix: fixing undefined access grant failed message
vedharish May 22, 2023
e6a17fa
fix: allow all hosts and celery secrets
niveshm Apr 18, 2023
e8f5582
fix: access mapping creation
niveshm May 22, 2023
99b4c80
Revert "fix: access mapping creation"
vedharish May 22, 2023
551867b
fix: reverting the access mapping creation changes
niveshm May 22, 2023
c3f6ce4
Merge remote-tracking branch 'refs/remotes/origin/fix_linter_issues' …
vedharish May 22, 2023
3823d51
fix: adding fixes for creating accessv2 in case it does not exists
vedharish May 22, 2023
6c0a0fc
fix: access mapping creating issue
niveshm May 22, 2023
7ddfee5
Merge branch 'fix_linter_issues' into fix-implementation
niveshm May 22, 2023
4c7dcda
feat: added decline for membership
niveshm May 22, 2023
2597003
fix: lint issues for decline membership
niveshm May 22, 2023
a1f6609
refactor: removed unwanted transaction in decline membership
niveshm May 23, 2023
11f237c
Merge pull request #165 from browserstack/fix-implementation
vedharish May 23, 2023
d474ed5
Merge remote-tracking branch 'origin/main' into fix_linter_issues
vedharish May 23, 2023
1fe9421
fix: get active mapping function
niveshm May 23, 2023
fce7fd1
Merge pull request #166 from browserstack/fix-implementation
vedharish May 23, 2023
8eea75e
fix: permission error for make dev
niveshm May 23, 2023
abe93f0
Merge pull request #167 from browserstack/make-fix
vedharish May 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/config-validator.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# github action to run commit-msg hook on pull request commits and push commits to master branch
name: config-validator
name: Validate sample config
on: pull_request
jobs:
config-validator:
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Unit Tests and Lint
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt
- name: Ensure Config
run: cp config.json.sample config.json
- name: Ensure git pat token
shell: bash
env:
CUSTOM_GITHUB_ACTIONS_PAT: ${{ secrets.CUSTOM_GITHUB_ACTIONS_PAT }}
run: |
sed -i "s|https://github.com/browserstack/enigma-access-modules.git|https://qwe:$CUSTOM_GITHUB_ACTIONS_PAT@github.com/browserstack/enigma-access-modules.git|g" config.json
- name: Setup access modules code base
run: python -m scripts.clone_access_modules
- name: Ensure access modules dependencies
run: |
pip install -r Access/access_modules/requirements.txt --no-cache-dir --ignore-installed
- name: Lint code base
run: python -m pylama Access/accessrequest_helper.py scripts
- name: Test with pytest
run: python -m pytest -v --cov --disable-warnings
Loading