forked from siddhi/test_driven_python
-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (32 loc) · 800 Bytes
/
ci.yml
File metadata and controls
33 lines (32 loc) · 800 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
name: Build
on:
push:
schedule:
- cron: '0 1 * * 0'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Setup build tools
run: |
sudo apt-get install pylint
- uses: actions/checkout@v4
- uses: testspace-com/setup-testspace@v1
with:
domain: samples
- name: Install
run: |
pip install -r requirements.txt
- name: Analyze
run: |
pylint stock_alerter/ -f parseable > analysis.txt || true
- name: Test
run: |
nose2 --junit-xml --with-coverage
- name: Push
run: |
testspace analysis.txt{lint} nose2.xml{stock_alerter} coverage.xml
if: always()