Skip to content

feat: Add support for arbitrary user configuration for hooks #205

feat: Add support for arbitrary user configuration for hooks

feat: Add support for arbitrary user configuration for hooks #205

Workflow file for this run

name: Test
on:
push:
branches:
# Push will only build on branches that match this name
# Pull requests will override this, so pushes to pull requests will still build
- main
pull_request:
branches:
- main
jobs:
test-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
poetry config virtualenvs.create false
poetry install --extras test
- name: Generate coverage report
run: |
pytest --cov=changelog_gen --cov-report=xml --cov-config=pyproject.toml -vvv
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: NRWLDev/changelog-gen
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
yml: ./codecov.yml
fail_ci_if_error: false
test-legacy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
poetry config virtualenvs.create false
poetry install --extras legacy
- name: Run legacy tests
run: |
sh -c 'pytest -m "backwards_compat"; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
test-core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
poetry config virtualenvs.create false
poetry install
- name: Run current tests
run: |
sh -c 'pytest -m "not backwards_compat"; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
test-python-versions:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version: ["3.9.x", "3.10.x", "3.11.x", "3.12.x"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
poetry config virtualenvs.create false
poetry install --extras test
- name: Test with pytest
run: |
pytest