-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (35 loc) · 840 Bytes
/
test.yml
File metadata and controls
36 lines (35 loc) · 840 Bytes
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
name: tests
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-18.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Run image
uses: abatilo/actions-poetry@v2.1.6
with:
poetry-version: 1.2.0
- name: Install dependencies
run: |
poetry install
- name: Pytest
run: |
poetry run pytest
- name: Slack Notifications
uses: Kicksaw-Consulting/notify-slack-action@master
if: always()
with:
status: ${{ job.status }}
notify_when: "failure"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
STAGE: "test"