name: Tests

on:
  push:
    branches: "*"
  pull_request:
    branches: "*"

jobs:
  unit_tests:
    name: Unit tests
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false

    steps:
    - name: Set up Python
      uses: actions/setup-python@v2

    - name: Check out source
      uses: actions/checkout@v2.3.4

    - name: Configure environment
      run: pip install -r requirements.txt

    - name: Run unit tests
      run: pytest --tb=short --color=yes

name: Unit Tests

on: [push, pull_request]

jobs:
  unit_tests:
    name: Unit tests
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false

    steps:
    - name: Set up Python
      uses: actions/setup-python@v2

    - name: Check out source
      uses: actions/checkout@v2.3.4

    - name: Configure environment
      run: pip install -r requirements.txt

    - name: Run unit tests
      run: pytest --tb=short --color=yes

Improve workflow trigger and name.
Improve workflow trigger and name.

Also, a single '*' matches zero or more characters, but does not match
the '/' character, so this is less restrictive.
