name: Unit Tests on: push: branches: [main] pull_request: branches: [main] workflow_dispatch: jobs: build: runs-on: ubuntu-20.04 strategy: matrix: python-version: [3.6, 3.7, 3.8] steps: - name: Checking out repo uses: actions/checkout@v3 - name: Set up Python ${{ matrix.container[1] }} uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | pip install -U pip setuptools wheel pip install -Ue .[test] - name: Run Unit tests run: | pytest tests/unittests