Skip to content

Commit

Permalink
Update pull_request_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bab2min authored Nov 18, 2019
1 parent aaf6fea commit b3b708c
Showing 1 changed file with 18 additions and 21 deletions.
39 changes: 18 additions & 21 deletions .github/workflows/pull_request_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3b708c

Please sign in to comment.