pacifica/pacifica-archiveinterface

View on GitHub
.github/workflows/tox.yml

Summary

Maintainability
Test Coverage
name: Run Tox

on:
  pull_request: {}
  push:
    branches: [main]

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest, windows-latest]
        python-version: ['3.8', '3.9', '3.10']
        exclude:
          - os: macos-latest
            python-version: '3.8'
    steps:
      - uses: actions/checkout@v3
      - name: Set up Python
        uses: actions/setup-python@v3
        with:
          python-version: ${{ matrix.python-version }}
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip setuptools wheel
          python -m pip install tox tox-gh-actions
      - name: Test with tox
        run: |
          tox
          python setup.py bdist_wheel
          python setup.py sdist