Make pipenv play nice with the setup-python ci workflow
This commit is contained in:
parent
b2b36c8575
commit
9b990ee1bd
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@ -4,19 +4,25 @@ on: [push, pull_request]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build-p36:
|
run-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version: [ '3.6', '3.7' ]
|
||||||
|
|
||||||
|
name: Python ${{ matrix.python-version }} test
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: 3.6
|
python-version: ${{ matrix.python-version }}
|
||||||
- uses: dschep/install-pipenv-action@v1
|
- uses: dschep/install-pipenv-action@v1
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt install protobuf-compiler libprotobuf-dev
|
sudo apt install protobuf-compiler libprotobuf-dev
|
||||||
pipenv install --dev
|
pipenv install --dev --python ${pythonLocation}/python
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
cp .env.default .env
|
cp .env.default .env
|
||||||
@ -24,7 +30,7 @@ jobs:
|
|||||||
pipenv run generate
|
pipenv run generate
|
||||||
pipenv run test
|
pipenv run test
|
||||||
|
|
||||||
build-p37:
|
build-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -36,13 +42,7 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt install protobuf-compiler libprotobuf-dev
|
sudo apt install protobuf-compiler libprotobuf-dev
|
||||||
pipenv install --dev
|
pipenv install --dev --python ${pythonLocation}/python
|
||||||
- name: Run tests
|
|
||||||
run: |
|
|
||||||
cp .env.default .env
|
|
||||||
pipenv run pip install -e .
|
|
||||||
pipenv run generate
|
|
||||||
pipenv run test
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
|
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
|
||||||
run: pipenv run python setup.py sdist
|
run: pipenv run python setup.py sdist
|
||||||
|
Loading…
x
Reference in New Issue
Block a user