Skip to content

Commit

Permalink
ci: install erpnext for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aga-r committed Sep 27, 2023
1 parent da03fa3 commit f9cd282
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ jobs:
- name: Install
working-directory: /home/runner/frappe-bench
run: |
bench get-app https://github.com/frappe/erpnext --branch "develop" --resolve-deps
bench get-app payments $GITHUB_WORKSPACE
bench setup requirements --dev
bench new-site --db-root-password root --admin-password admin test_site
bench start &> bench_start.log &
bench --site test_site install-app payments
bench --site test_site install-app erpnext payments
bench build
env:
CI: 'Yes'
Expand Down
2 changes: 1 addition & 1 deletion payments/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
# Testing
# -------

# before_tests = "pay.install.before_tests"
before_tests = "erpnext.setup.utils.before_tests" # To setup company and accounts

# Overriding Methods
# ------------------------------
Expand Down

0 comments on commit f9cd282

Please sign in to comment.