Skip to content

Commit

Permalink
debug(iter-0)!: gh workflow for e2e
Browse files Browse the repository at this point in the history
Signed-off-by: Dipankar Das <[email protected]>
  • Loading branch information
dipankardas011 committed May 28, 2024
1 parent 60ef1c3 commit 5b8fae1
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 41 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/e2e-migration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: E2E on push event

on:
push:
tags:
- v*
branches:
- main
- develop
- feat-add-e2e-test # TODO(user): remove it
workflow_dispatch:

jobs:
e2e-current:
name: e2e current latest branch
runs-on: ubuntu-latest

strategy:
matrix:
python-ver: ["3.11", "3.12"]

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-ver }}

- name: install frappe from v0.9.0
run: |
cd /tmp
python -m pip install -U git+https://github.com/rtCamp/[email protected]
- name: frappe version
run: fm --version

32 changes: 0 additions & 32 deletions .github/workflows/e2e-push.yaml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/e2e-site.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: E2E on push event

on:
push:
tags:
- v*
branches:
- main
- develop
- feat-add-e2e-test # TODO(user): remove it
workflow_dispatch:

jobs:
e2e-current:
name: e2e current latest branch
runs-on: ubuntu-latest

strategy:
matrix:
python-ver: ["3.11", "3.12"]

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-ver }}

- name: install frappe from current commit
run: |
cd ..
python -m pip install --upgrade ./Frappe-Manager
- name: frappe version
run: fm --version


10 changes: 1 addition & 9 deletions test/helpers.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
#!/bin/bash

Cleanup() {
python -m pip uninstall -y frappe_manager
python -m pip uninstall -y frappe-manager
sudo rm -rf ~/frappe
}


# sudo apt update && sudo apt upgrade -y
# sudo add-apt-repository ppa:deadsnakes/ppa
# sudo apt update && sudo apt install python3.12 python3.12-venv -y
# python3.12 --version

# python3.12 -m venv env

InstallFrappe() {
local tagOrBranch=$1
if [ -d ~/Frappe-Manager ]; then
Expand Down

0 comments on commit 5b8fae1

Please sign in to comment.