diff --git a/.github/workflows/run_pytest.yml b/.github/workflows/run_pytest.yml index 383c5b9..2baf6a9 100644 --- a/.github/workflows/run_pytest.yml +++ b/.github/workflows/run_pytest.yml @@ -1,32 +1,27 @@ -on: - - push - - pull_request +name: pytest -name: Run pytest +on: [push] jobs: - build: - name: Build + runs-on: ubuntu-latest strategy: - max-parallel: 4 + max-parallel: 3 matrix: python-version: [3.5, 3.6, 3.7] + steps: - - - uses: actions/checkout@master - - - name: Set up Python $ - uses: actions/setup-python@master + - uses: actions/checkout@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 with: - version: $ - + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - - name: Test with pytest run: | - pytest + pip install pytest + pytest -c test/pytest.ini