Skip to content

Commit

Permalink
ci: run redis server
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohan Bansal committed May 6, 2024
1 parent dc4ae5f commit b6b1ce0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/helper/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sudo apt install libcups2-dev redis-server mariadb-client-10.6

pip install frappe-bench

bench init --skip-redis-config-generation --skip-assets --python "$(which python)" --frappe-branch version-15 frappe-bench
bench init --skip-assets --python "$(which python)" --frappe-branch version-15 frappe-bench

mkdir ~/frappe-bench/sites/test_site
cp -r "${GITHUB_WORKSPACE}/.github/helper/site_config.json" ~/frappe-bench/sites/test_site/
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,16 @@ jobs:
with:
node-version: 18
check-latest: true
cache: 'yarn'

- name: Add to Hosts
run: echo "127.0.0.1 test_site" | sudo tee -a /etc/hosts

- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/*requirements.txt', '**/pyproject.toml', '**/setup.py') }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
Expand All @@ -67,7 +68,7 @@ jobs:
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand All @@ -83,6 +84,6 @@ jobs:
working-directory: /home/runner/frappe-bench
run: |
source env/bin/activate
pytest ./apps/cloud_storage/cloud_storage/tests/ --disable-warnings -s
pytest ./apps/cloud_storage/cloud_storage/tests/ -s
env:
TYPE: server
TYPE: server

0 comments on commit b6b1ce0

Please sign in to comment.