dmyersturnbull/service-it

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

Summary

Maintainability
Test Coverage
# Runs tests via tox
# Runs on pull requests to main
name: Test on pull request
on:
  pull_request:
    branches: [ main ]
    paths-ignore: [ "**/*.md", "**/*.rst" ]
jobs:
  build:
    strategy:
      max-parallel: 1
      matrix:
        os: ["ubuntu-20.04", "windows-2019", "macos-10.15"]
        python-version: ["3.9"]
    runs-on: "${{ matrix.os }}"
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: "Set up Python ${{ matrix.python-version }}"
        uses: actions/setup-python@v2
        with:
          python-version: "${{ matrix.python-version }}"
      - name: Install build meta-dependencies
        run: |
          pip install tox poetry
      - name: Test with tox
        run: |
          tox -v