-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: remove cypress, fix hrms install, conform (#221)
* ci: remove cypress, fix hrms install, conform * ci: fix mypy error
- Loading branch information
1 parent
9d99698
commit cbfe67f
Showing
11 changed files
with
159 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
{ | ||
"db_host": "127.0.0.1", | ||
"db_port": 3306, | ||
"db_name": "test_frappe", | ||
"db_password": "test_frappe", | ||
"auto_email_id": "test@example.com", | ||
"mail_server": "smtp.example.com", | ||
"mail_login": "test@example.com", | ||
"mail_password": "test", | ||
"admin_password": "admin", | ||
"root_login": "root", | ||
"root_password": "travis", | ||
"host_name": "http://test_site:8000", | ||
"install_apps": ["erpnext", "check_run"], | ||
"throttle_user_limit": 100, | ||
"developer_mode": 1 | ||
"allow_tests": true, | ||
"db_host": "127.0.0.1", | ||
"db_port": 3306, | ||
"db_name": "test_site", | ||
"db_password": "admin", | ||
"auto_email_id": "test@example.com", | ||
"mail_server": "smtp.example.com", | ||
"mail_login": "test@example.com", | ||
"mail_password": "test", | ||
"admin_password": "admin", | ||
"root_login": "root", | ||
"root_password": "admin", | ||
"host_name": "http://test_site:8000", | ||
"install_apps": [ | ||
"erpnext", | ||
"hrms", | ||
"check_run" | ||
], | ||
"throttle_user_limit": 100, | ||
"developer_mode": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: Pytest CI | ||
|
||
on: | ||
push: | ||
branches: [ version-14, version-15 ] | ||
pull_request: | ||
branches: [ version-14, version-15 ] | ||
env: | ||
BRANCH_NAME: ${{ github.base_ref || github.ref_name }} | ||
|
||
jobs: | ||
tests: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
fail-fast: false | ||
name: Server | ||
|
||
services: | ||
mysql: | ||
image: mariadb:10.6 | ||
env: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: YES | ||
MYSQL_ROOT_PASSWORD: 'admin' | ||
ports: | ||
- 3306:3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3 | ||
|
||
steps: | ||
- name: Clone | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
check-latest: true | ||
cache: 'yarn' # Replaces `Get yarn cache directory path` and `yarn-cache` steps | ||
|
||
- name: Add to Hosts | ||
run: echo "127.0.0.1 test_site" | sudo tee -a /etc/hosts | ||
|
||
- name: Cache pip | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/*requirements.txt', '**/pyproject.toml', '**/setup.py', '**/setup.cfg') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
${{ runner.os }}- | ||
- name: Cache node modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Install JS Dependencies | ||
run: yarn --prefer-offline | ||
|
||
- name: Install App Dependencies | ||
run: bash ${{github.workspace}}/.github/helper/install_dependencies.sh | ||
|
||
- name: Install Bench Site and Apps | ||
env: | ||
MYSQL_HOST: 'localhost' | ||
MYSQL_PWD: 'admin' | ||
BRANCH_NAME: ${{ env.BRANCH_NAME}} | ||
run: | | ||
bash ${{ github.workspace }}/.github/helper/install.sh | ||
- name: Run Tests | ||
working-directory: /home/runner/frappe-bench | ||
run: | | ||
source env/bin/activate | ||
pytest ./apps/check_run/check_run/tests/ --disable-warnings -s |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.