name: Quick test

on:
  workflow_dispatch:
  
  push:
  pull_request:

jobs:
  build:

    runs-on: ubuntu-20.04
    strategy:
      matrix:
        python-version: [ 3.10.13 ]

    steps:

    - uses: actions/checkout@v3

    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v4
      with:
        python-version: ${{ matrix.python-version }}

    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip setuptools wheel
        pip install pytest
        pip install -r requirements.txt

    - name: Test with pytest
      run: |
        pytest --junit-xml=tests.xml
