-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (39 loc) · 1.57 KB
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: tests
run-name: 👁️ ${{ github.actor }} has pushed a new commit!
on: [ push ]
jobs:
Tests:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- name: Verify toml files exist
uses: thebinaryfelix/[email protected]
with:
files: "pyproject.toml,\
libs/agentc/pyproject.toml,\
libs/agentc_core/pyproject.toml,\
libs/agentc_cli/pyproject.toml,\
libs/agentc_langchain/pyproject.toml,\
libs/agentc_testing/pyproject.toml"
- name: Set up Python Poetry
uses: mishaga/action-poetry@1
with:
python-version: "3.12"
poetry-version: "latest"
shell: "bash"
- name: Install repository with Poetry
run: |
poetry install --with dev
- run: echo "🔥 Starting the core tests (🤞 please don't break!)."
- name: Verify Pytest installation
run: poetry show pytest
- name: Run agentc-core tests
run: poetry run bash -c "cd libs/agentc_core && pytest -m smoke -v"
- name: Run agentc-cli tests
run: poetry run bash -c "cd libs/agentc_cli && pytest -m smoke -v"
- name: Run agentc tests
run: poetry run bash -c "cd libs/agentc && pytest -m smoke -v"
- run: echo "🍏 This job's status is ${{ job.status }}."