SEIAROTg/autobean

View on GitHub
.github/workflows/build.yml

Summary

Maintainability
Test Coverage
name: build
on: [push, pull_request]
env:
  PY_COLORS: "1"
jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: ['3.10', '3.x']
    steps:
      - uses: actions/checkout@v3
      - name: Set up PDM
        uses: pdm-project/setup-pdm@v3
        with:
          python-version: ${{ matrix.python-version }}
      - name: Install dependencies
        run: pdm sync --dev
      - name: Run tests
        run: pdm run -v pytest autobean --cov autobean --cov-report xml
      - name: Run type checks
        run: pdm run -v mypy autobean
      - name: Upload coverage
        uses: paambaati/codeclimate-action@v3.2.0
        env:
          CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}