From c458c4f20257f43ba114d3ca2166fa16fa0e86ec Mon Sep 17 00:00:00 2001 From: Davis King Date: Tue, 12 Jul 2022 20:24:24 -0400 Subject: [PATCH] update how python tests are run on ubuntu and mac --- .github/workflows/build_python.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_python.yml b/.github/workflows/build_python.yml index ea3c91cab..8299f54c1 100644 --- a/.github/workflows/build_python.yml +++ b/.github/workflows/build_python.yml @@ -30,18 +30,23 @@ jobs: Ubuntu: runs-on: 'ubuntu-latest' steps: - - uses: actions/checkout@v2 - - name: Build - run: python setup.py build + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + run: | + python setup.py build + python setup.py install --user - name: Test - run: python setup.py test + run: python -m pytest --ignore docs --ignore dlib - # we don't run python setup.py test on MacOS because there is some system - # issue that prevents it from running at all. MacOS: runs-on: 'macos-latest' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 - name: Build - run: python setup.py build + run: | + python setup.py build + python setup.py install --user + - name: Test + run: python -m pytest --ignore docs --ignore dlib