endremborza/branthebuilder

View on GitHub
.github/workflows/test.yml

Summary

Maintainability
Test Coverage
name: Python Test

on:
  pull_request:
    branches: 
      - main
  push:
    branches:
      - main

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - name: Set up Python
      uses: actions/setup-python@v4
      with:
        python-version: '3.x'
    - name: Install dependencies
      run: |
        sudo apt-get update
        sudo apt-get install pandoc -y
        python -m pip install --upgrade pip
        pip install -e .[test,doc]
    - name: Setup Git
      run: |
        git config --global init.defaultBranch main
        git config --global user.email "leo@dumbartonserum.com"
        git config --global user.name "Leo Dumbarton"
    - name: Test
      run: |
        branb test
    - name: "Upload coverage to Codecov"
      uses: codecov/codecov-action@v3
      with:
        fail_ci_if_error: true