Skip to content

add docs navigations #57

add docs navigations

add docs navigations #57

Workflow file for this run

name: tests
on: [push, pull_request]
jobs:
test:
name: test
strategy:
fail-fast: true
matrix:
python-version: [ "3.10", "3.11", "3.12" ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install poetry
poetry install
- name: Run pytest
run: |
docker-compose up -d --build mock_server && poetry run pytest .
coverage:
name: coverage
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install poetry
poetry install
- name: Run pytest
run: |
docker-compose up -d --build mock_server && poetry run pytest --cov=pythogen --cov-report=xml tests/
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage.xml