diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index d4b872f..7a7da53 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -22,18 +22,25 @@ jobs: steps: - - uses: actions/setup-python@v2 + - name: Setup Python + uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - run: python -m pip install --upgrade pip - - uses: actions/checkout@v2 + - name: Upgrade pip + run: python -m pip install --upgrade pip - - run: python -m pip install .[test] + - name: Checkout code + uses: actions/checkout@v2 - - run: python -m pytest tests --cov=endaq.batch + - name: Install package & (test) dependencies + run: python -m pip install .[test] - - uses: codecov/codecov-action@v2 + - name: Run Tests + run: python -m pytest tests --cov=endaq.batch --numprocesses auto + + - name: Generate Codecov Report + uses: codecov/codecov-action@v2 with: token: ${{ secrets.CODECOV_TOKEN }} env_vars: OS,PYTHON-VERSION diff --git a/setup.py b/setup.py index deec2c6..d177ef4 100644 --- a/setup.py +++ b/setup.py @@ -14,6 +14,7 @@ TEST_REQUIRES = [ "pytest", "pytest-cov", + "pytest-xdist[psutil]", "hypothesis", "sympy", "numpy-quaternion==2020.11.2.17.0.49",