From b3b708c88447a9472d6a48f78fca544c6ebe2bfe Mon Sep 17 00:00:00 2001 From: bab2min Date: Mon, 18 Nov 2019 23:12:59 +0900 Subject: [PATCH] Update pull_request_test.yml --- .github/workflows/pull_request_test.yml | 39 ++++++++++++------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/.github/workflows/pull_request_test.yml b/.github/workflows/pull_request_test.yml index 7d80588..0642fd9 100644 --- a/.github/workflows/pull_request_test.yml +++ b/.github/workflows/pull_request_test.yml @@ -9,32 +9,29 @@ jobs: build_manylinux: name: Build for manylinux runs-on: ubuntu-latest - strategy: - max-parallel: 4 - matrix: - python-version: [3.5, 3.6, 3.7, 3.8] + container: + image: docker://quay.io/pypa/manylinux1_x86_64 - steps: - - name: Use docker - uses: docker://quay.io/pypa/manylinux1_x86_64 + steps: - uses: actions/checkout@v1 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install --upgrade pip - wget https://github.com/eigenteam/eigen-git-mirror/archive/3.3.7.tar.gz - tar -zxvf 3.3.7.tar.gz - mv eigen-git-mirror-3.3.7 include - - name: Build + git clone https://github.com/eigenteam/eigen-git-mirror + cd eigen-git-mirror + git checkout tags/3.3.7 + cd .. + mv eigen-git-mirror include + - name: Deploy + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - python setup.py build install - - name: Test - run: | - python -m pip install pytest - python -m pytest test/unit_test.py + for cp in cp34-cp34m cp35-cp35m cp36-cp36m cp37-cp37m cp38-cp38 + do + /opt/python/${cp}/bin/python -m pip install pytest + /opt/python/${cp}/bin/python setup.py build install + /opt/python/${cp}/bin/python -m pytest test/unit_test.py + done build_macos: name: Build for macOS