Skip to content

Merge pull request #13 from bmsan/dev/conda-win-fix #11

Merge pull request #13 from bmsan/dev/conda-win-fix

Merge pull request #13 from bmsan/dev/conda-win-fix #11

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [main, development]
pull_request:
branches: [main, development]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: s-weigand/setup-conda@v1
- run: conda --version
- run: which python
- name: Switch to Current Branch
run: git checkout ${{ env.BRANCH }}
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
pip install -e .
- name: run unit tests
run: |
pytest
if: always()
- name: Pylint
run: |
pylint --fail-under=9.9 codestamper
if: always()
- name: Coverage
run: |
pytest --cov=codestamper --cov-report=xml
if: always()
- uses: codecov/codecov-action@v1
with:
file: ./coverage.xml