add docs navigations #57
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: 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 |