Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[resotoeventlog][feat] Genesis of resotoeventlog (#883)
- Loading branch information
1 parent
c31cfe5
commit 99c09e7
Showing
75 changed files
with
12,580 additions
and
314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Check PR (resotoeventlog) | ||
on: | ||
push: | ||
tags: | ||
- "*.*.*" | ||
branches: | ||
- main | ||
pull_request: | ||
paths: | ||
- 'resotoeventlog/**' | ||
- 'resotolib/**' | ||
- '.github/**' | ||
|
||
jobs: | ||
resotoeventlog: | ||
name: "resotoeventlog" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
architecture: 'x64' | ||
|
||
- name: Restore dependency cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: $\{\{runner.os}}-pip-$\{\{hashFiles('./resotoeventlog/setup.py')}} | ||
restore-keys: | | ||
$\{\{ runner.os }}-pip- | ||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox wheel flake8 build | ||
pip install --upgrade --editable resotolib/ | ||
- name: Run tests | ||
working-directory: ./resotoeventlog | ||
run: tox -p 4 -o | ||
|
||
- name: Build a binary wheel and a source tarball | ||
working-directory: ./resotoeventlog | ||
run: >- | ||
python -m | ||
build | ||
--sdist | ||
--wheel | ||
--outdir dist/ | ||
- name: Publish distribution to PyPI | ||
if: github.ref_type == 'tag' | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_resotoeventlog }} | ||
packages_dir: ./resotoeventlog/dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,4 @@ docs/_build/ | |
resotoshell/backup_* | ||
resotocore/tools/Assets | ||
out/ | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.