Skip to content

removed breaking test install of lib from reqs #22

removed breaking test install of lib from reqs

removed breaking test install of lib from reqs #22

name: Python CI with Pytest and Coverage
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10',3.11] # expand this later...
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: set pythonpath
run: |
echo "PYTHONPATH=gchatcardbuilder" >> $GITHUB_ENV
- name: Run tests with pytest and coverage
run: |
pytest --cov=./ tests/
- name: Generate coverage report
run: coverage report -m
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4-beta
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}