Merge branch 'main' of github.com:sinaatalay/rendercv

This commit is contained in:
Sina Atalay 2023-10-11 17:54:44 +02:00
commit 025f9da53b
2 changed files with 19 additions and 8 deletions

View File

@ -11,12 +11,13 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"] python-version: ["3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
@ -27,7 +28,7 @@ jobs:
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
python -m pip install flake8 pytest python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi pip install -r requirements.txt
- name: Lint with flake8 - name: Lint with flake8
run: | run: |
# stop the build if there are Python syntax errors or undefined names # stop the build if there are Python syntax errors or undefined names
@ -38,8 +39,13 @@ jobs:
run: | run: |
pip install pytest pytest-cov pip install pytest pytest-cov
pytest --cov-report html --cov="." tests/ pytest --cov-report html --cov="." tests/
- name: Upload coverage data - name: Upload coverage data to smokeshow
uses: actions/upload-artifact@v3 if: ${{matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'}} # upload coverage once
with: run: |
name: htmlcov pip install smokeshow
path: ./htmlcov smokeshow upload ./htmlcov
env:
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Coverage {coverage-percentage}
SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 50
SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}

View File

@ -1,2 +1,7 @@
# RenderCV [![python tests](https://github.com/sinaatalay/rendercv/actions/workflows/python-tests.yml/badge.svg)](https://github.com/sinaatalay/rendercv/actions/workflows/python-tests.yml) # RenderCV
[![deploy MkDocs](https://github.com/sinaatalay/rendercv/actions/workflows/deploy-mkdocs.yaml/badge.svg)](https://github.com/sinaatalay/rendercv/actions/workflows/deploy-mkdocs.yaml)
[![python tests](https://github.com/sinaatalay/rendercv/actions/workflows/python-tests.yml/badge.svg)](https://github.com/sinaatalay/rendercv/actions/workflows/python-tests.yml)
[![coverage](https://coverage-badge.samuelcolvin.workers.dev/sinaatalay/rendercv.svg)](https://smokeshow.helpmanual.io/06110o3l5x474d540n3x/)
A Python application that creates CVs in PDF, HTML, LaTeX, etc., from a JSON/YAML input file. A Python application that creates CVs in PDF, HTML, LaTeX, etc., from a JSON/YAML input file.