mirror of https://github.com/eyhc1/rendercv.git
Merge branch 'main' of github.com:sinaatalay/rendercv
This commit is contained in:
commit
025f9da53b
|
@ -11,12 +11,13 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
python-version: ["3.10", "3.11", "3.12"]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
|
@ -27,7 +28,7 @@ jobs:
|
|||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
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
|
||||
run: |
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
|
@ -38,8 +39,13 @@ jobs:
|
|||
run: |
|
||||
pip install pytest pytest-cov
|
||||
pytest --cov-report html --cov="." tests/
|
||||
- name: Upload coverage data
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: htmlcov
|
||||
path: ./htmlcov
|
||||
- name: Upload coverage data to smokeshow
|
||||
if: ${{matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'}} # upload coverage once
|
||||
run: |
|
||||
pip install smokeshow
|
||||
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 }}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue