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 5cb0330
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 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,33 @@ jobs:
- name: Format Check
run: |
ruff format --check
unit-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
run: |
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 5cb0330

Please sign in to comment.