Skip to content

Merge pull request #12 from pyper-dev/dev #8

Merge pull request #12 from pyper-dev/dev

Merge pull request #12 from pyper-dev/dev #8

Workflow file for this run

name: Tests
on:
push:
branches:
- main
paths:
- "src/pyper/**"
- "tests/**"
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [
"3.8",
"3.9",
"3.10",
"3.11",
"3.12",
"3.13"
]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run tests with Tox
run: tox -e ${{ matrix.python-version }}
coverage:
environment:
name: test
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- 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 tox coveralls
- name: Run coverage with Tox
run: tox -e coverage