Skip to content

Merge pull request #36 from ayrna/development #54

Merge pull request #36 from ayrna/development

Merge pull request #36 from ayrna/development #54

Workflow file for this run

name: "Run Tests"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install codecov
pip install pytest-cov
pip install .
- name: Run tests
run: |
pytest -v
codecov:
needs: tests
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install codecov
pip install pytest-cov
pip install .
- name: Run tests for codecov
run: |
pytest --cov=dlordinal --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}