-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove support for python 3.6 and clean
BREAKING CHANGE: Removed support for Python 3.6 and overall cleanup
- Loading branch information
Showing
49 changed files
with
20,681 additions
and
4,096 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
|
||
- package-ecosystem: pip | ||
directory: / | ||
schedule: | ||
interval: "daily" | ||
interval: monthly | ||
|
||
- package-ecosystem: "pip" | ||
directory: "/" | ||
- package-ecosystem: npm | ||
directory: /node/ | ||
schedule: | ||
interval: "daily" | ||
interval: monthly |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,89 @@ | ||
name: primary | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [trunk, master, main] | ||
|
||
jobs: | ||
secondary: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
# ------------------------------------------------------------------------ | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
|
||
# ------------------------------------------------------------------------ | ||
# Poetry | ||
|
||
- name: Setup Poetry | ||
uses: Gr1N/setup-poetry@v7 | ||
|
||
- name: Cache Poetry | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pypoetry/virtualenvs | ||
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} | ||
restore-keys: ${{ runner.os }}-poetry- | ||
|
||
- run: poetry --version | ||
- run: poetry install | ||
|
||
# ------------------------------------------------------------------------ | ||
# Pre-Commit | ||
|
||
- name: Setup pre-commit | ||
run: | | ||
pip install pre-commit | ||
pre-commit install | ||
- name: Cache pre-commit | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: ${{ runner.os }}-pre-commit | ||
|
||
- name: Run pre-commit | ||
run: pre-commit run --all-files --verbose --show-diff-on-failure | ||
|
||
# ------------------------------------------------------------------------ | ||
# Tests | ||
|
||
- run: ./scripts/test.sh | ||
|
||
- uses: codecov/codecov-action@v2 | ||
with: | ||
files: ./coverage.xml | ||
flags: unittests | ||
fail_ci_if_error: true | ||
|
||
# ------------------------------------------------------------------------ | ||
# Semantic Release | ||
|
||
- name: Prepare for npm | ||
run: cp node/package* . | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16" | ||
cache: npm | ||
|
||
- name: Install node packages | ||
run: npm install --no-progress --prefer-offline | ||
|
||
- name: Perform semantic-release | ||
id: semantic_release | ||
run: npx --no-install semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
PYPI_REPOSITORY: https://upload.pypi.org/legacy/ | ||
|
||
# ------------------------------------------------------------------------ |
This file was deleted.
Oops, something went wrong.
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,67 @@ | ||
name: secondary | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches-ignore: [trunk, master, main] | ||
|
||
jobs: | ||
secondary: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
# ------------------------------------------------------------------------ | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
|
||
# ------------------------------------------------------------------------ | ||
# Poetry | ||
|
||
- name: Setup Poetry | ||
uses: Gr1N/setup-poetry@v7 | ||
|
||
- name: Cache Poetry | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pypoetry/virtualenvs | ||
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} | ||
restore-keys: ${{ runner.os }}-poetry- | ||
|
||
- run: poetry --version | ||
- run: poetry install | ||
|
||
# ------------------------------------------------------------------------ | ||
# Pre-Commit | ||
|
||
- name: Setup pre-commit | ||
run: | | ||
pip install pre-commit | ||
pre-commit install | ||
- name: Cache pre-commit | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: ${{ runner.os }}-pre-commit | ||
|
||
- name: Run pre-commit | ||
run: pre-commit run --all-files --verbose --show-diff-on-failure | ||
|
||
# ------------------------------------------------------------------------ | ||
# Tests | ||
|
||
- run: ./scripts/test.sh | ||
|
||
- uses: codecov/codecov-action@v2 | ||
with: | ||
files: ./coverage.xml | ||
flags: unittests | ||
fail_ci_if_error: true | ||
|
||
# ------------------------------------------------------------------------ |
Oops, something went wrong.