Interactive Wizard #556
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.10","3.11","3.12"] # versions need to be strings | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install tox | |
run: pip install tox | |
- name: Install tox-gh-actions | |
run: pip install tox-gh-actions # allows tox to get the current python version | |
- name: Run tests with tox | |
run: tox # we can't pass arguments to tox when using tox-gh-actions, so all frameworks happen in one run |