-
Notifications
You must be signed in to change notification settings - Fork 3
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 #21 from tpvasconcelos/feat/docs
Upgrade project structure
- Loading branch information
Showing
79 changed files
with
2,766 additions
and
979 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
Validating CODEOWNERS rules …
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 @@ | ||
* @tpvasconcelos |
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,30 @@ | ||
name: Setup python | ||
|
||
description: Setup python and install dependencies | ||
|
||
inputs: | ||
python-version: | ||
description: "Python version" | ||
required: false | ||
default: "3.9" | ||
requirements-path: | ||
description: "Path to requirements.txt file" | ||
required: false | ||
default: "requirements/ci.txt" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: "${{ inputs.python-version }}" | ||
cache: pip | ||
cache-dependency-path: "${{ inputs.requirements-path }}" | ||
|
||
- name: Ensure pip, setuptools, and wheel are up to date | ||
shell: bash | ||
run: python -m pip install --upgrade pip setuptools wheel | ||
|
||
- name: Install requirements | ||
shell: bash | ||
run: python -m pip install -r "${{ inputs.requirements-path }}" |
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 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,47 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
ci-checks: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
python-version: | ||
- "3.7" | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
os: | ||
- "ubuntu-latest" | ||
- "macos-latest" | ||
- "windows-latest" | ||
fail-fast: true | ||
env: | ||
OS: "${{ matrix.os }}" | ||
PYTHON: "${{ matrix.python-version }}" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/setup-python | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
- name: Run CI checks with Tox | ||
run: tox | ||
- name: Upload coverage to codecov | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./coverage.xml | ||
flags: unittests | ||
env_vars: OS,PYTHON | ||
fail_ci_if_error: true | ||
verbose: true | ||
- name: Upload coverage to codacy | ||
uses: codacy/codacy-coverage-reporter-action@v1 | ||
with: | ||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
coverage-reports: coverage.xml |
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,24 @@ | ||
name: Publish to PyPI | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
build-and-publish: | ||
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/setup-python | ||
with: | ||
python-version: "3.7" | ||
- name: Package and upload a release to test pypi | ||
env: | ||
TWINE_PASSWORD: "${{ secrets.PYPI_TOKEN_TEST }}" | ||
run: tox -e build,release-test | ||
- name: Package and upload a release prod pypi | ||
env: | ||
TWINE_PASSWORD: "${{ secrets.PYPI_TOKEN }}" | ||
run: tox -e build,release-prod |
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
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
Oops, something went wrong.