dmyersturnbull/tyrannosaurus

View on GitHub
.github/workflows/pull-test.yml

Summary

Maintainability
Test Coverage
# Runs tests via tox
# Runs on pull requests to main
name: pulltest
on:
  pull_request:
    types: [ready_for_review, opened, reopened]
    branches: [main, master, stable, "release/**", "releases/**"]
    paths-ignore: ["**/*.md", "**/*.rst"]
jobs:
  test:
    name: "Test ${{ github.ref_type }}:${{ github.ref_name }} on ${{ matrix.os }}/py${{ matrix.python-version }}"
    strategy:
      max-parallel: 1
      matrix:
        os: ["ubuntu-latest", "windows-latest", "macos-latest"]
        python-version: ["3.10"]
    runs-on: "${{ matrix.os }}"
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v4
        with:
          python-version: "${{ matrix.python-version }}"
      - name: Install build meta-dependencies
        run: |
          pip install 'poetry>=1.2,<2' 'tox>=3,<4' 'wheel>=0.37,<1.0'
      - name: Test with tox
        run: |
          tox -v