Update infrastructure to use poetry. #219
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: Unit Tests | |
on: | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
linuxtest: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.10', '3.11', '3.12', '3.13'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
run: pip install poetry | |
- name: Set up project | |
run: poetry install -E cpu -E test | |
- name: Run tests | |
run: poetry run pytest --pyargs banzai_floyds.tests -m "not e2e" | |
macos: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
python-version: ['3.12'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
run: pip install poetry | |
- name: Set up project | |
run: poetry install -E cpu -E test | |
- name: Run tests | |
run: poetry run pytest --pyargs banzai_floyds.tests -m "not e2e" |