Skip to content

Merge pull request #3 from Vini2/pr-2 #223

Merge pull request #3 from Vini2/pr-2

Merge pull request #3 from Vini2/pr-2 #223

name: CI
permissions:
contents: read
pull-requests: write
on:
push:
pull_request:
jobs:
tests:
name: "Python ${{ matrix.python-version }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, macos-latest]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: "actions/checkout@v3"
with:
fetch-depth: 0
# Setup env
- uses: "actions/setup-python@v3"
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies on ${{ matrix.os }} for Python ${{ matrix.python-version }}"
run: |
python --version
python -m pip install --upgrade pip
pip install --upgrade pip wheel setuptools flit
flit install
- name: "Generate coverage report on ${{ matrix.os }} for Python ${{ matrix.python-version }}"
run: |
pip install pytest pytest-cov
pytest --cov=agtools --cov-report=xml --cov-append
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: Vini2/agtools