Skip to content

Merge pull request #16 from pharmaverse/parser #31

Merge pull request #16 from pharmaverse/parser

Merge pull request #16 from pharmaverse/parser #31

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- main
name: CI Tests
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
# we are using the -e flag, so that code cov finds the source.
# this is not ideal, since installing an editable can technically
# differ from a normal install in surprising ways.
pip install -e '.[all]'
- name: Test with pytest
run: |
pip install pytest pytest-cov
pytest --cov=pkglite --cov-report=xml
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v4
# with:
# name: "py${{ matrix.python-version }}"
# token: ${{ secrets.CODECOV_TOKEN }}
test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install dependencies
run: |
pip install -e '.[all]'
- name: Test with pytest
run: |
pip install pytest pytest-cov
pytest --cov=pkglite --cov-report=xml