Skip to content

Commit

Permalink
Merge pull request #19 from AgentOps-AI/testing-start
Browse files Browse the repository at this point in the history
setup testing
  • Loading branch information
bboynton97 authored Oct 16, 2024
2 parents 3807d3d + f03ad62 commit 59faf42
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/python-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Python Tests

on:
push:
branches:
- main
paths:
- 'agentstack/**/*.py'
- 'agentstack/**/*.ipynb'
- 'tests/**/*.py'
- 'tests/**/*.ipynb'
pull_request:
branches:
- main
paths:
- 'agentstack/**/*.py'
- 'agentstack/**/*.ipynb'
- 'tests/**/*.py'
- 'tests/**/*.ipynb'

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.11,3.12]

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11' # Use a default Python version for running tox
- name: Install tox
run: pip install tox
- name: Run tests with tox
run: tox
14 changes: 14 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py311,py312

[testenv]
deps =
pytest
mypy: mypy
commands =
mypy: mypy agentops

0 comments on commit 59faf42

Please sign in to comment.