Various improvements for v0.10 #113
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Unit tests for DSO" | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "docs/**" | |
pull_request: | |
paths-ignore: | |
- "docs/**" | |
jobs: | |
unit_tests_linux: | |
name: "Python ${{ matrix.python-version }}" | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
# test minimum and maximum supported python version | |
python-version: ["3.10", "3.13"] | |
env: | |
# GitHub currently has 4 cores available for Linux runners | |
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories | |
worker_cores: 4 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Set up Python ${{ matrix.python-version }}" | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
allow-prereleases: true | |
- name: Set up Quarto | |
uses: quarto-dev/quarto-actions/setup@v2 | |
- name: Install libgit2 header files for libgit2 & pandoc for testing purposes | |
run: sudo apt-get install -y libgit2-dev pandoc | |
- name: "Install DSO" | |
run: pip install '.[test]' | |
- name: "Run unit tests" | |
run: pytest -vv tests -n ${{ env.worker_cores }} --cov=dso --cov-report=xml | |
# - name: "Upload coverage to Codecov" | |
# uses: codecov/codecov-action@v4 | |
# with: | |
# files: ./coverage.xml | |
# env: | |
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |