Skip to content

Merge pull request #119 from MajorcaDevs/dependabot/pip/jinja2-3.1.3 #62

Merge pull request #119 from MajorcaDevs/dependabot/pip/jinja2-3.1.3

Merge pull request #119 from MajorcaDevs/dependabot/pip/jinja2-3.1.3 #62

Workflow file for this run

name: PR build
on:
push:
branches: [ 'dev' ]
pull_request:
branches: [ 'dev' ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pipenv
python -m pipenv install --dev
- name: Code Style
run: |
python -m pipenv run flake8 mdbackup
python -m pipenv run flake8 tests
- name: Test
run: |
python -m pipenv run coverage run --source=mdbackup --branch -m xmlrunner discover -s tests -p '*tests*.py' -o tests/.report
python -m pipenv run coverage html -d tests/.coverage-report/
- name: Archive test results
uses: actions/upload-artifact@v3
with:
name: test-results
path: tests/.report/**/*.xml
retention-days: 30
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: tests/.coverage-report/**/*.html
retention-days: 30