python-benedict/.github/workflows/test-package.yml

49 lines
1.0 KiB
YAML
Raw Normal View History

name: Test package
2019-12-12 17:38:52 +00:00
2021-12-08 15:53:07 +00:00
on:
2022-01-27 22:15:41 +00:00
push:
pull_request:
workflow_dispatch:
2019-12-12 17:38:52 +00:00
jobs:
2022-03-11 10:30:09 +00:00
test:
2021-12-08 15:53:07 +00:00
runs-on: ubuntu-latest
2019-12-12 17:38:52 +00:00
strategy:
2022-01-17 21:10:30 +00:00
fail-fast: false
2019-12-12 17:38:52 +00:00
matrix:
2022-01-12 00:45:41 +00:00
platform: [ubuntu-latest, macos-latest, windows-latest]
2023-10-31 19:37:23 +00:00
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
2019-12-12 17:38:52 +00:00
steps:
2021-12-08 15:53:07 +00:00
- uses: actions/checkout@v4
2021-12-08 15:53:07 +00:00
2019-12-12 17:38:52 +00:00
- name: Set up Python ${{ matrix.python-version }}
Update dependencies. commit 94f9bb25a157f6d28adfebb66372a8c512408db4 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Nov 14 22:16:05 2022 +0100 Bump boto3 from 1.26.3 to 1.26.8 (#141) commit e8a4e2c7a464a6e12addf04a22b3401e3134d92a Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Nov 14 22:14:39 2022 +0100 Bump tox from 3.27.0 to 3.27.1 (#142) commit e982ba05cda56efbc482b877e0cfbe8858b68ed7 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:24:13 2022 +0100 Bump orjson from 3.8.0 to 3.8.1 (#140) Bumps [orjson](https://github.com/ijl/orjson) from 3.8.0 to 3.8.1. - [Release notes](https://github.com/ijl/orjson/releases) - [Changelog](https://github.com/ijl/orjson/blob/master/CHANGELOG.md) - [Commits](https://github.com/ijl/orjson/compare/3.8.0...3.8.1) --- updated-dependencies: - dependency-name: orjson dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 0dba6ef3ae2a4412633d876278a461f98d046089 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:22:40 2022 +0100 Bump actions/setup-python from 2 to 4 (#135) Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 4. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v2...v4) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit ecc5c29afff3d7c5a2eccb17ed73d50f032f09b5 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:22:13 2022 +0100 Bump tox from 3.26.0 to 3.27.0 (#134) Bumps [tox](https://github.com/tox-dev/tox) from 3.26.0 to 3.27.0. - [Release notes](https://github.com/tox-dev/tox/releases) - [Changelog](https://github.com/tox-dev/tox/blob/master/docs/changelog.rst) - [Commits](https://github.com/tox-dev/tox/compare/3.26.0...3.27.0) --- updated-dependencies: - dependency-name: tox dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 38acc12f3a59d0e238cfb86b38fefda678cc413f Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:21:49 2022 +0100 Bump peter-evans/create-pull-request from 3 to 4 (#133) Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3 to 4. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v3...v4) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 2fe9be8bc65bd19e278fef97c9ebde150bb4d3ff Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:21:28 2022 +0100 Bump github/codeql-action from 1 to 2 (#132) Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v1...v2) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 5d5b43602b5c4fbc9ba67006b4b30512886be926 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:21:00 2022 +0100 Bump codecov/codecov-action from 2 to 3 (#131) Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2 to 3. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v2...v3) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 8410056f37b8bee6620ed60e9587e280434d52d0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:20:23 2022 +0100 Bump actions/checkout from 2 to 3 (#137) Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 743ab9d03bdccad9df1c89cf942753a3c3a70526 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:19:51 2022 +0100 Bump phonenumbers from 8.12.56 to 8.13.0 (#136) Bumps [phonenumbers](https://github.com/daviddrysdale/python-phonenumbers) from 8.12.56 to 8.13.0. - [Release notes](https://github.com/daviddrysdale/python-phonenumbers/releases) - [Commits](https://github.com/daviddrysdale/python-phonenumbers/compare/v8.12.56...v8.13.0) --- updated-dependencies: - dependency-name: phonenumbers dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 835d89b684c3285c75b54b27c37f1ff6fe00adb6 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:18:48 2022 +0100 Bump boto3 from 1.24.89 to 1.26.3 (#138) Bumps [boto3](https://github.com/boto/boto3) from 1.24.89 to 1.26.3. - [Release notes](https://github.com/boto/boto3/releases) - [Changelog](https://github.com/boto/boto3/blob/develop/CHANGELOG.rst) - [Commits](https://github.com/boto/boto3/compare/1.24.89...1.26.3) --- updated-dependencies: - dependency-name: boto3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 0d098a14567a5c733c5310170828e692151b445e Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:17:48 2022 +0100 Bump mailchecker from 5.0.2 to 5.0.3 (#139) Bumps [mailchecker](https://github.com/FGRibreau/mailchecker) from 5.0.2 to 5.0.3. - [Release notes](https://github.com/FGRibreau/mailchecker/releases) - [Changelog](https://github.com/FGRibreau/mailchecker/blob/master/CHANGELOG.md) - [Commits](https://github.com/FGRibreau/mailchecker/compare/v5.0.2...v5.0.3) --- updated-dependencies: - dependency-name: mailchecker dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-22 12:55:37 +00:00
uses: actions/setup-python@v4
2019-12-12 17:38:52 +00:00
with:
python-version: ${{ matrix.python-version }}
2023-12-11 23:02:40 +00:00
cache: 'pip'
2021-12-08 15:53:07 +00:00
- name: Install requirements
2019-12-12 17:38:52 +00:00
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
2021-12-06 17:30:11 +00:00
pip install -r requirements-test.txt
2022-02-14 19:53:10 +00:00
2022-01-12 00:45:41 +00:00
- name: Run tests
2022-02-14 19:53:10 +00:00
run: |
2022-12-13 22:29:52 +00:00
coverage run --append --source=benedict -m unittest
2023-03-27 16:37:59 +00:00
coverage report --show-missing
2022-02-14 19:53:10 +00:00
coverage xml -o ./coverage.xml
- name: Upload coverage to Codecov
Update dependencies. commit 94f9bb25a157f6d28adfebb66372a8c512408db4 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Nov 14 22:16:05 2022 +0100 Bump boto3 from 1.26.3 to 1.26.8 (#141) commit e8a4e2c7a464a6e12addf04a22b3401e3134d92a Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Nov 14 22:14:39 2022 +0100 Bump tox from 3.27.0 to 3.27.1 (#142) commit e982ba05cda56efbc482b877e0cfbe8858b68ed7 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:24:13 2022 +0100 Bump orjson from 3.8.0 to 3.8.1 (#140) Bumps [orjson](https://github.com/ijl/orjson) from 3.8.0 to 3.8.1. - [Release notes](https://github.com/ijl/orjson/releases) - [Changelog](https://github.com/ijl/orjson/blob/master/CHANGELOG.md) - [Commits](https://github.com/ijl/orjson/compare/3.8.0...3.8.1) --- updated-dependencies: - dependency-name: orjson dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 0dba6ef3ae2a4412633d876278a461f98d046089 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:22:40 2022 +0100 Bump actions/setup-python from 2 to 4 (#135) Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 4. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v2...v4) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit ecc5c29afff3d7c5a2eccb17ed73d50f032f09b5 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:22:13 2022 +0100 Bump tox from 3.26.0 to 3.27.0 (#134) Bumps [tox](https://github.com/tox-dev/tox) from 3.26.0 to 3.27.0. - [Release notes](https://github.com/tox-dev/tox/releases) - [Changelog](https://github.com/tox-dev/tox/blob/master/docs/changelog.rst) - [Commits](https://github.com/tox-dev/tox/compare/3.26.0...3.27.0) --- updated-dependencies: - dependency-name: tox dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 38acc12f3a59d0e238cfb86b38fefda678cc413f Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:21:49 2022 +0100 Bump peter-evans/create-pull-request from 3 to 4 (#133) Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3 to 4. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v3...v4) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 2fe9be8bc65bd19e278fef97c9ebde150bb4d3ff Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:21:28 2022 +0100 Bump github/codeql-action from 1 to 2 (#132) Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v1...v2) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 5d5b43602b5c4fbc9ba67006b4b30512886be926 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:21:00 2022 +0100 Bump codecov/codecov-action from 2 to 3 (#131) Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2 to 3. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v2...v3) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 8410056f37b8bee6620ed60e9587e280434d52d0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:20:23 2022 +0100 Bump actions/checkout from 2 to 3 (#137) Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 743ab9d03bdccad9df1c89cf942753a3c3a70526 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:19:51 2022 +0100 Bump phonenumbers from 8.12.56 to 8.13.0 (#136) Bumps [phonenumbers](https://github.com/daviddrysdale/python-phonenumbers) from 8.12.56 to 8.13.0. - [Release notes](https://github.com/daviddrysdale/python-phonenumbers/releases) - [Commits](https://github.com/daviddrysdale/python-phonenumbers/compare/v8.12.56...v8.13.0) --- updated-dependencies: - dependency-name: phonenumbers dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 835d89b684c3285c75b54b27c37f1ff6fe00adb6 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:18:48 2022 +0100 Bump boto3 from 1.24.89 to 1.26.3 (#138) Bumps [boto3](https://github.com/boto/boto3) from 1.24.89 to 1.26.3. - [Release notes](https://github.com/boto/boto3/releases) - [Changelog](https://github.com/boto/boto3/blob/develop/CHANGELOG.rst) - [Commits](https://github.com/boto/boto3/compare/1.24.89...1.26.3) --- updated-dependencies: - dependency-name: boto3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 0d098a14567a5c733c5310170828e692151b445e Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Nov 6 16:17:48 2022 +0100 Bump mailchecker from 5.0.2 to 5.0.3 (#139) Bumps [mailchecker](https://github.com/FGRibreau/mailchecker) from 5.0.2 to 5.0.3. - [Release notes](https://github.com/FGRibreau/mailchecker/releases) - [Changelog](https://github.com/FGRibreau/mailchecker/blob/master/CHANGELOG.md) - [Commits](https://github.com/FGRibreau/mailchecker/compare/v5.0.2...v5.0.3) --- updated-dependencies: - dependency-name: mailchecker dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-22 12:55:37 +00:00
uses: codecov/codecov-action@v3
2022-02-14 19:53:10 +00:00
with:
fail_ci_if_error: false
files: ./coverage.xml
flags: unittests
verbose: true