Skip to content

chore(dev): adjusting make install (#684) #3

chore(dev): adjusting make install (#684)

chore(dev): adjusting make install (#684) #3

name: Pytest and Codecov
on:
pull_request:
push:
branches:
- main
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
env:
OS: ubuntu-latest
working_directory: ~/scanapi
steps:
- name: Checkout ScanAPI repository
uses: actions/checkout@v3
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Poetry Setup
uses: snok/install-poetry@v1
with:
version: 1.3.2
- name: Install Dependencies
run: poetry install
- name: Run Test and generate coverage report
run: |
make test
- name: Upload coverage report to codecov.io
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true