diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-11-29 18:15:14 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-11-29 18:22:49 +0300 |
commit | e8b9c8e3b30aa807a45472142be5c501788dd538 (patch) | |
tree | 424923ab10332018a8d3e081c6a4a046b7e0b13c | |
parent | bye-bye, Travis (diff) | |
download | vk-scripts-e8b9c8e3b30aa807a45472142be5c501788dd538.tar.gz vk-scripts-e8b9c8e3b30aa807a45472142be5c501788dd538.zip |
add GitHub workflow
-rwxr-xr-x | .ci/lib/test.sh | 2 | ||||
-rw-r--r-- | .github/workflows/test.yml | 35 |
2 files changed, 36 insertions, 1 deletions
diff --git a/.ci/lib/test.sh b/.ci/lib/test.sh index c91ce48..0f6ee6c 100755 --- a/.ci/lib/test.sh +++ b/.ci/lib/test.sh @@ -21,7 +21,7 @@ run_test() { echo echo ====================================================================== - PYTHONPATH="$script_dir/../.." python3 -m "$@" + PYTHONPATH="$script_dir/../.." python -m "$@" } run_test "$@" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..723fa69 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,35 @@ +name: Test + +on: + push: + pull_request: + schedule: + # Weekly, at 6:45 AM on Thursday (somewhat randomly chosen). + - cron: '45 6 * * 4' + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-18.04 + + strategy: + fail-fast: false + matrix: + python-version: [3.4, 3.5, 3.6, 3.7, 3.8, 3.9] + + name: 'Python ${{ matrix.python-version }}' + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '${{ matrix.python-version }}' + + - name: Install dependencies + run: python -m pip install -r requirements.txt + + - name: Run the tests + run: ./.ci/bin/main.sh |