Skip to content

Commit 4b8c1bb

Browse files
committed
Add CI build settings
1 parent ae7e39e commit 4b8c1bb

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci-build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
2+
name: CI Build
3+
4+
on:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 10
13+
strategy:
14+
matrix:
15+
# TODO: 3.10 in GH Actions is not yet stable enough for us
16+
# You may often encounter "Error: Process completed with exit code 250."
17+
python-version: ['3.6', '3.9']
18+
env:
19+
PYTHON_SLACK_SDK_MOCK_SERVER_MODE: 'threading'
20+
#CI_UNSTABLE_TESTS_SKIP_ENABLED: '1'
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Install dependencies
28+
run: |
29+
pip install -U pip wheel
30+
pip install -e ".[testing]"
31+
pip install -e ".[optional]"
32+
- name: Run validation
33+
run: |
34+
python setup.py validate

0 commit comments

Comments
 (0)