-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from brunchstudio/docs
Improvements before release
- Loading branch information
Showing
38 changed files
with
1,013 additions
and
242 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Publish package to PyPi | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install Poetry Action | ||
uses: snok/[email protected] | ||
with: | ||
version: 1.7.0 | ||
|
||
- name: Publish to PyPi | ||
run: poetry publish --build --username __token__ --password ${{ secrets.PYPI_TOKEN }} |
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,46 @@ | ||
name: Unit tests | ||
|
||
on: [push] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
unit-tests: | ||
runs-on: self-hosted | ||
|
||
concurrency: | ||
group: uses-tvpaint | ||
cancel-in-progress: true | ||
|
||
strategy: | ||
fail-fast: true | ||
max-parallel: 1 | ||
matrix: | ||
python-version: [python39, python310, python311, python312] | ||
|
||
env: | ||
VENV_PATH: ${{ github.workspace }}/env_${{ matrix.python-version }} | ||
PYTHON_EXE: C:/Users/usermuster/scoop/apps/${{ matrix.python-version }}/current/python.exe | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Poetry in venv | ||
run: | | ||
${{ env.PYTHON_EXE }} -m venv ${{ env.VENV_PATH }} | ||
${{ env.VENV_PATH }}/Scripts/pip.exe install --quiet poetry | ||
- name: Installing dependencies with Poetry... | ||
env: | ||
POETRY_EXE: ${{ env.VENV_PATH }}/Scripts/poetry.exe | ||
POETRY_VENV: ${{ github.workspace }}/.venv | ||
shell: powershell | ||
run: | | ||
if (test-path ${{ env.POETRY_VENV }}) { rm -r ${{ env.POETRY_VENV }} } | ||
${{ env.POETRY_EXE }} config virtualenvs.in-project true | ||
${{ env.POETRY_EXE }} install --no-interaction --with test | ||
- name: Pytest with coverage | ||
run: ${{ env.VENV_PATH }}/Scripts/poetry.exe run pytest --maxfail 5 --cov=pytvpaint |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.