ci: cleanup CI config and update setup (#169)
* ci: Run tests on multiple OS. Use latest action versions. Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com> * ci: use fixed `pupi-publish` action version and update others. Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com> * docs: update changelog Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com> * Upgrade python setup action to the latest v4 Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
This commit is contained in:
parent
a61b84b1be
commit
1cdd2542ba
|
@ -7,28 +7,33 @@ jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
- name: Install tox
|
cache: 'pip'
|
||||||
run: python -m pip install tox
|
cache-dependency-path: 'requirements/*.txt'
|
||||||
|
- name: Install dev dependencies
|
||||||
|
run: python -m pip install -r requirements/dev.txt
|
||||||
- name: Run linting
|
- name: Run linting
|
||||||
run: python -m tox -e lint
|
run: python -m tox -e lint
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python: ['3.6', '3.7', '3.8', '3.9', '3.10']
|
python: ['3.6', '3.7', '3.8', '3.9', '3.10']
|
||||||
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
- name: Install tox
|
cache: 'pip'
|
||||||
run: python -m pip install tox
|
cache-dependency-path: 'requirements/*.txt'
|
||||||
|
- name: Install dev dependencies
|
||||||
|
run: python -m pip install -r requirements/dev.txt
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: python -m tox -e py # Run tox using the version of Python in `PATH`
|
run: python -m tox -e py # Run tox using the version of Python in `PATH`
|
||||||
|
|
|
@ -9,17 +9,18 @@ jobs:
|
||||||
build-and-publish:
|
build-and-publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.x"
|
python-version: "3.10"
|
||||||
|
cache: 'pip'
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
run: pip install -U setuptools wheel build
|
run: pip install -U setuptools wheel build
|
||||||
- name: Build
|
- name: Build
|
||||||
run: python -m build .
|
run: python -m build .
|
||||||
- name: Publish
|
- name: Publish
|
||||||
uses: pypa/gh-action-pypi-publish@master
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
password: ${{ secrets.pypi_password }}
|
password: ${{ secrets.pypi_password }}
|
||||||
- name: Install GitPython and cloudevents for pypi_packaging
|
- name: Install GitPython and cloudevents for pypi_packaging
|
||||||
|
|
|
@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Code quality and styling tooling is unified and configs compatibility is ensured ([#167])
|
- Code quality and styling tooling is unified and configs compatibility is ensured ([#167])
|
||||||
|
- CI configurations updated and added macOS and Windows tests ([#169])
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
- `docs` folder and related unused tooling ([#168])
|
- `docs` folder and related unused tooling ([#168])
|
||||||
|
@ -151,3 +152,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
[#165]: https://github.com/cloudevents/sdk-python/pull/165
|
[#165]: https://github.com/cloudevents/sdk-python/pull/165
|
||||||
[#167]: https://github.com/cloudevents/sdk-python/pull/167
|
[#167]: https://github.com/cloudevents/sdk-python/pull/167
|
||||||
[#168]: https://github.com/cloudevents/sdk-python/pull/168
|
[#168]: https://github.com/cloudevents/sdk-python/pull/168
|
||||||
|
[#169]: https://github.com/cloudevents/sdk-python/pull/169
|
||||||
|
|
Loading…
Reference in New Issue