-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.11 KB
/
sanity-suite.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
# This workflow will install Python dependencies, run tests with a single version of Python
name: Sanity Suite
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
permissions:
contents: read
jobs:
sanity:
name: Perform Sanity
runs-on: ubuntu-latest
env:
CC_TEST_REPORTER_ID: 795d51655a38f68d2a9b4caad660a28f0853d2c9583ef014bc1e8210bc53e896
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Setup Code Climate Test Reporter
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- name: Install required dependencies
run: |
python -m pip install --upgrade poetry
poetry install --with=test
- name: Perform Sanity Tests
run: |
./cc-test-reporter before-build
poetry run pytest
./cc-test-reporter after-build --coverage-input-type coverage.py --exit-code $?