-
Notifications
You must be signed in to change notification settings - Fork 181
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 #20 from microsoft/dciborow/pyproject
Create pyproject.toml
- Loading branch information
Showing
42 changed files
with
713 additions
and
655 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
This file is copied into the container along with environment.yml* from the | ||
parent folder. This is done to prevent the Dockerfile COPY instruction from | ||
parent folder. This is done to prevent the Dockerfile COPY instruction from | ||
failing if no environment.yml is found. |
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,16 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
select = "F,E,W,B,B901,B902,B903" | ||
exclude = [ | ||
".eggs", | ||
".git", | ||
".tox", | ||
"nssm", | ||
"obj", | ||
"out", | ||
"packages", | ||
"pywin32", | ||
"tests", | ||
"swagger_client" | ||
] | ||
ignore = "E722,B001,W503,E203" |
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,31 @@ | ||
name: Python CI | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
release: | ||
types: [created] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
tooling: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
tools: ['black', 'bandit', 'pylint', 'pyright', 'flake8'] | ||
include: | ||
- tools: pytest | ||
args: -m not integration and not gpu | ||
- tools: pytest | ||
args: -m integration | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: ${{ matrix.tools }} | ||
uses: dciborow/pyaction@0.0.28 | ||
with: | ||
${{ matrix.tools }}: true | ||
args: ${{ matrix.args }} | ||
|
||
publish: | ||
uses: ./.github/workflows/publish.yml |
This file was deleted.
Oops, something went wrong.
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,33 @@ | ||
name: Python Publish Workflow | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- if: ${{ github.event_name == 'release' && secrets.PYPI_PASSWORD != '' }} | ||
name: Publish Release to PyPi | ||
uses: dciborow/pyaction@0.0.28 | ||
with: | ||
pypi_publish: true | ||
pypi_password: ${{ secrets.PYPI_PASSWORD }} | ||
|
||
- if: ${{ github.event_name == 'push' && secrets.PYPI_PASSWORD != '' }} | ||
name: Publish RC to PyPi | ||
uses: dciborow/pyaction@0.0.28 | ||
with: | ||
pypi_publish: true | ||
pypi_password: ${{ secrets.PYPI_PASSWORD }} | ||
version_suffix: -rc${{ github.run_number }}-post${{ github.run_attempt }} | ||
|
||
- if: ${{ github.event_name == 'pull_request' && secrets.TEST_PYPI_PASSWORD != '' }} | ||
name: Publish Snapshot to TestPyPi | ||
uses: dciborow/pyaction@0.0.28 | ||
with: | ||
pypi_publish: true | ||
pypi_password: ${{ secrets.TEST_PYPI_PASSWORD }} | ||
pypi_repo: testpypi | ||
version_suffix: -post${{ github.run_number }}-dev${{ github.run_attempt }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.