chore(main): release 1.5.1 #196
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: Run Battery of Checks | |
on: [push, pull_request] | |
jobs: | |
battery: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ 3.11 ] | |
steps: | |
- uses: actions/checkout@v4.1.2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5.1.0 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Cache Poetry dependencies | |
uses: actions/cache@v4.0.2 | |
with: | |
path: | | |
~/.cache/pypoetry | |
.venv | |
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} | |
restore-keys: | | |
${{ runner.os }}-poetry- | |
- name: Install dependencies | |
run: | | |
pip install poetry | |
poetry install --no-root --with dev | |
- name: Run Coverage | |
run: poetry run pytest --cov=./PTT --cov-report=xml --cov-report=term | |
- name: Upload Coverage Report to Codecov | |
uses: codecov/codecov-action@v4.1.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: dreulavelle/PTT | |
file: ./coverage.xml |