Skip to content

Commit

Permalink
chore: run unittests on GA
Browse files Browse the repository at this point in the history
  • Loading branch information
18alantom committed Sep 19, 2024
1 parent 06488f4 commit 8e577eb
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
lint-and-format:
name: 'Ruff'
name: 'Lint and Format'
runs-on: ubuntu-latest

steps:
Expand All @@ -34,3 +34,32 @@ jobs:
- name: Format Check
run: |
ruff format --check
uni-tests:
name: 'Unit tests'
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'

- name: Install agent
python -m venv env
source env/bin/activate
pip install -e .

- name: Setup agent
run: |
agent setup config --name test.frappe.agent --user abdul --workers 1
agent setup authentication --password password
agent setup supervisor
agent ping-server --password password
- name: Run Tests
run: |
python -m unittest discover

0 comments on commit 8e577eb

Please sign in to comment.