diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..97fe54c --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,29 @@ +name: CI + +on: + - push + - pull_request + +jobs: + coverage: + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: [3.9, "3.10", "3.11"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + cache: "pip" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements_dev.txt . + - name: Tests + run: pytest --cov-report term-missing --cov-report=xml test + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 diff --git a/requirements_dev.txt b/requirements_dev.txt new file mode 100644 index 0000000..4538098 --- /dev/null +++ b/requirements_dev.txt @@ -0,0 +1,2 @@ +pytest-cov +pytest-asyncio