-
Notifications
You must be signed in to change notification settings - Fork 19
68 lines (65 loc) · 1.98 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Tests
on:
push:
branches: ["master"]
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
# Run "pre-commit run --all-files --hook-stage=manual"
pre-commit:
runs-on: ubuntu-20.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/[email protected]
with:
extra_args: --all-files --hook-stage=manual
- name: Help message if pre-commit fail
if: ${{ failure() }}
run: |
echo "You can install pre-commit hooks to automatically run formatting"
echo "on each commit with:"
echo " pre-commit install"
echo "or you can run by hand on staged files with"
echo " pre-commit run"
echo "or after-the-fact on already committed files with"
echo " pre-commit run --all-files --hook-stage=manual"
build:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Install the Python dependencies
run: |
pip install -r requirements-test.txt
- name: Run the tests
run: python -m pytest -vv -raXs || python -m pytest -vv -raXs --lf
- name: Start the App
env:
GITHUB_INTEGRATION_ID: 812
GITHUB_BOT_NAME: meeseeksdev-test
WEBHOOK_SECRET: foo
PERSONAL_ACCOUNT_NAME: snuffy
PERSONAL_ACCOUNT_TOKEN: token
TESTING: true
run: |
set -eux
python -m meeseeksdev &
TASK_PID=$!
# Make sure the task is running
ps -p $TASK_PID
# Connect to the task
python .github/workflows/connect.py
# Kill the task
kill $TASK_PID
wait $TASK_PID