Skip to content

Commit

Permalink
CI: replace setup.py install with pip install
Browse files Browse the repository at this point in the history
`setup.py install` is kind of deprecated in favor of `pip install .`
  • Loading branch information
valgur committed Dec 19, 2021
1 parent 7bbee72 commit 2e87f67
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: [ '3.6', '3.9' ]
install-mode: [ 'setup.py', 'sdist', 'wheel' ]
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.6', '3.9']
install-mode: ['setup.py', 'sdist', 'wheel']
steps:
- uses: actions/checkout@v2

Expand All @@ -32,15 +32,19 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: setup.py install
- name: build and install
if: ${{ matrix.install-mode == 'setup.py' }}
run: python setup.py install
run: |
python setup.py build
pip install .
- name: sdist install
if: ${{ matrix.install-mode == 'sdist' }}
run: |
python setup.py sdist
ls dist/
python .github/pip.py install dist/hatanaka-*.tar.gz
- name: wheel install
if: ${{ matrix.install-mode == 'wheel' }}
env:
Expand Down

0 comments on commit 2e87f67

Please sign in to comment.