Skip to content

Merge pull request #244 from kedhammar/ci #20

Merge pull request #244 from kedhammar/ci

Merge pull request #244 from kedhammar/ci #20

Workflow file for this run

name: Test code
on: [push, pull_request]
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Install genologics
run: pip install -e .
- name: pytest
# Options are configured in pyproject.toml
run: pytest --cov=genologics --cov-report=xml
- name: CodeCov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}