Create tech stack docs (techstack.yml and techstack.md) #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: 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 }} |