Skip to content

Merge pull request #189 from eEcoLiDAR/remove-codacy-badge #49

Merge pull request #189 from eEcoLiDAR/remove-codacy-badge

Merge pull request #189 from eEcoLiDAR/remove-codacy-badge #49

Workflow file for this run

name: Build
on:
push:
pull_request:
schedule:
- cron: '0 0 1 * *'
jobs:
build:
name: Build for ${{ matrix.python-version }}
runs-on: 'ubuntu-latest'
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Python info
shell: bash -l {0}
run: |
which python
python --version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build
shell: bash -l {0}
run: |
python setup.py build
- name: Test
shell: bash -l {0}
run: |
pip install pytest pytest-cov
pytest --cov=laserchicken --cov-report xml:coverage.xml
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true
flag-name: Unit Test
coveralls_finish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true