Skip to content

fix: handle arbitrary newline terminators #75

fix: handle arbitrary newline terminators

fix: handle arbitrary newline terminators #75

Workflow file for this run

# From: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#using-the-python-starter-workflow
name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install packages
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -e .
- name: Check code format
run: black --check src tests
- name: Lint with flake8
run: python -m flake8 . --count --show-source --statistics
- name: Test with pytest
run: python -m pytest tests --cov=picklescan --doctest-modules --junitxml=junit/test-results.xml --cov-report=xml --cov-report=html
- name: Archive test results
uses: actions/upload-artifact@v3
with:
name: test
path: |
htmlcov
junit