Skip to content

Add Project Structure #8

Add Project Structure

Add Project Structure #8

Workflow file for this run

name: Test suite
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
tests:
name: "Python ${{ matrix.python-version }}"
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install Dependencies
run: pip install hatch
- name: Lint
run: hatch run test:lint
- name: store coverage files
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.python-version }}
path: .coverage*
retention-days: 1
coverage:
needs:
- tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
- name: get coverage files
uses: actions/download-artifact@v4
with:
pattern: coverage-*
merge-multiple: true
- name: Install Dependencies
run: pip install hatch
- name: Coverage Report
run: hatch run cov:report
- name: Upload coverage
uses: codecov/codecov-action@v3