Skip to content

Create tech stack docs (techstack.yml and techstack.md) #2

Create tech stack docs (techstack.yml and techstack.md)

Create tech stack docs (techstack.yml and techstack.md) #2

name: Python Tests
on:
pull_request:
branches: [main, master]
jobs:
tests:
runs-on: ubuntu-latest
environment:
name: testing
steps:
# Get the files
- uses: actions/checkout@v3
# Python setup
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.4.2
- name: Install python dependencies
run: |
poetry install
- name: Run Python tests
run: |
poetry run coverage run -m pytest -s tests
- name: Generate and upload coverage reports to Codecov
run: |
poetry run coverage xml
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${{ secrets.CODECOV_TOKEN }}