Release v2.10.2 (#686) #2
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: 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 |