Skip to content

updated func-validator package version #266

updated func-validator package version

updated func-validator package version #266

# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: tests
on:
push:
branches: ["main", "dev"]
permissions:
contents: read
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest]
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pipenv
pipenv install --dev --python ${{ matrix.python-version }}
- name: Test with pytest
run: pipenv run pytest
coverage:
if: github.ref == 'refs/heads/main'
needs: test
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install coverage.py
run: |
python -m pip install --upgrade pip
python -m pip install pipenv
pipenv install --dev
- name: Test with coverage.py
run: |
pipenv run coverage run -m --rcfile=pyproject.toml pytest
pipenv run coverage lcov
- name: Coveralls GitHub Action
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}