Skip to content

rewrite GitHub Action using explicit reference to tox environment wit… #13

rewrite GitHub Action using explicit reference to tox environment wit…

rewrite GitHub Action using explicit reference to tox environment wit… #13

name: python-tabulate
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install tox and any other packages
run: pip install tox pytest numpy pandas
- name: Run tox
# Run tox using the version of Python in `PATH`
run: tox -e py${{ matrix.python}}-extra