Skip to content

Commit

Permalink
test: add tox workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SaaiVenkat committed Feb 26, 2024
1 parent 5a955bb commit 6fc8cb0
Show file tree
Hide file tree
Showing 4 changed files with 366 additions and 254 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run Tox

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
fail-fast: false
steps:
- name: Check out
uses: actions/checkout@v4

- name: Set up python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: snok/install-poetry@v1

- name: Load cached venv
uses: actions/cache@v4
with:
path: .tox
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}

- name: Install tox
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox
Loading

0 comments on commit 6fc8cb0

Please sign in to comment.