Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto label #70

Merged
merged 9 commits into from
Nov 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 117 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
Bash:
- 'wandbox/__bash__.py'
- 'samples/command/src/bash/**/*'
C:
- 'wandbox/__cc__.py'
- 'samples/command/src/cc/**/*'
CMake:
- 'wandbox/__cmake__.py'
- 'samples/command/src/cmake/**/*'
CoffeeScript:
- 'wandbox/__coffee__.py'
- 'samples/command/src/coffee/**/*'
CPP:
- 'wandbox/__cpp__.py'
- 'samples/command/src/cpp/**/*'
Crystal:
- 'wandbox/__crystal__.py'
- 'samples/command/src/crystal/**/*'
C#:
- 'wandbox/__csharp__.py'
- 'samples/command/src/csharp/**/*'
C++:
- 'wandbox/__cxx__.py'
- 'samples/command/src/cxx/**/*'
D:
- 'wandbox/__dmd__.py'
- 'wandbox/__dub__.py'
- 'samples/command/src/dmd/**/*'
- 'samples/command/src/dub/**/*'
Elixir:
- 'wandbox/__elixir__.py'
- 'samples/command/src/elixir/**/*'
Erlang:
- 'wandbox/__erlang__.py'
- 'samples/command/src/erlang/**/*'
F#:
- 'wandbox/__fsharp__.py'
- 'samples/command/src/fsharp/**/*'
Haskell:
- 'wandbox/__ghc__.py'
- 'samples/command/src/haskell/**/*'
- 'samples/command/src/haskell-stack/**/*'
Go:
- 'wandbox/__go__.py'
- 'samples/command/src/go/**/*'
Groovy:
- 'wandbox/__groovy__.py'
- 'samples/command/src/groovy/**/*'
Java:
- 'wandbox/__java__.py'
- 'samples/command/src/java/**/*'
JavaScript:
- 'wandbox/__js__.py'
- 'samples/command/src/js/**/*'
Julia:
- 'wandbox/__julia__.py'
- 'samples/command/src/julia/**/*'
LazyK:
- 'wandbox/__lazyk__.py'
- 'samples/command/src/lazyk/**/*'
Lisp:
- 'wandbox/__lisp__.py'
- 'samples/command/src/lisp/**/*'
Lua:
- 'wandbox/__lua__.py'
- 'samples/command/src/lua/**/*'
Nim:
- 'wandbox/__nim__.py'
- 'samples/command/src/nim/**/*'
OCaml:
- 'wandbox/__ocaml__.py'
- 'samples/command/src/ocaml/**/*'
OpenSSL:
- 'wandbox/__openssl__.py'
- 'samples/command/src/openssl/**/*'
Pascal:
- 'wandbox/__pascal__.py'
- 'samples/command/src/pascal/**/*'
Perl:
- 'wandbox/__perl__.py'
- 'samples/command/src/perl/**/*'
PHP:
- 'wandbox/__php__.py'
- 'samples/command/src/php/**/*'
Pony:
- 'wandbox/__pony__.py'
- 'samples/command/src/pony/**/*'
Python:
- 'wandbox/__python__.py'
- 'samples/command/src/python/**/*'
R:
- 'wandbox/__r__.py'
- 'samples/command/src/r/**/*'
Rill:
- 'wandbox/__rill__.py'
- 'samples/command/src/rill/**/*'
Ruby:
- 'wandbox/__ruby__.py'
- 'samples/command/src/ruby/**/*'
Rust:
- 'wandbox/__rust__.py'
- 'samples/command/src/rust/**/*'
Scala:
- 'wandbox/__scala__.py'
- 'samples/command/src/scala/**/*'
SQL:
- 'wandbox/__sql__.py'
- 'samples/command/src/sql/**/*'
Swift:
- 'wandbox/__swift__.py'
- 'samples/command/src/swift/**/*'
TypeScript:
- 'wandbox/__tsc__.py'
- 'samples/command/src/ts/**/*'
Vim:
- 'wandbox/__vim__.py'
- 'samples/command/src/vim/**/*'
11 changes: 11 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Set Label
on: [pull_request]

jobs:
labeler:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@ on:

jobs:
setup-test:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: test
run: python setup.py test
# run: python setup.py test
run: |
pip install -e".[test]"
tox .

12 changes: 7 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
pypi:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
Expand All @@ -18,11 +18,13 @@ jobs:
PYPI_USERNAME: __token__
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
echo -e '[pypi]' >> ~/.pypirc
echo -e "username = ${PYPI_USERNAME}" >> ~/.pypirc
echo -e "password = ${PYPI_PASSWORD}" >> ~/.pypirc
{
echo -e '[pypi]'
echo -e "username = ${PYPI_USERNAME}"
echo -e "password = ${PYPI_PASSWORD}"
} >> ~/.pypirc
- name: Publish
run: |
pip install twine wheel
python setup.py sdist bdist_wheel
twine upload --repository pypi dist/*
twine upload --repository pypi dist/*
22 changes: 22 additions & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: GitHub Actions - reviewdog
on:
pull_request:

jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: reviewdog/action-shellcheck@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
path: "."
pattern: "*.sh"
exclude: "./.git/*"

actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: reviewdog/action-actionlint@v1
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
test:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
container:
image: python:3.8-alpine
credentials:
Expand Down
4 changes: 2 additions & 2 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
build:
environment:
python: 3.6.0
python: 3.7.1
nodes:
tests: true
analysis:
Expand All @@ -14,7 +14,7 @@ build:
before:
- pip install -e.[test] && pip install tox-venv && make pyenv-versions && pyenv versions
override:
- command: tox -e py36,py37,flake8 .
- command: tox -e py37,flake8 .

filter:
excluded_paths:
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ envlist =
py39
flake8
skipsdist=True
skip_missing_interpreters=True

[testenv]
deps =
Expand Down