-
Notifications
You must be signed in to change notification settings - Fork 1
75 lines (61 loc) · 1.86 KB
/
continuous-integration.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
69
70
71
72
73
74
75
name: Continuous Integration
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
version: ["3.8"]
steps:
- name: Check out the commit
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ~${{ matrix.version }}
- name: Install development dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install \
-r requirements.txt \
-r doc/requirements.txt \
-r example/requirements.txt \
-r test/requirements.txt
python3 -m pip install snoop
- name: Test install
run: python3 -m pip install .
- name: Test with pytest
run: python3 -m pytest -v -s --cov=shell_logger test/
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Check documentation spelling
run: make spelling SPHINXOPTS="-W --keep-going"
working-directory: ./doc
- name: Check documentation coverage
run: make coverage SPHINXOPTS="-W --keep-going"
working-directory: ./doc
- name: Archive documentation coverage results
uses: actions/upload-artifact@v3
with:
name: docs-coverage-report
path: doc/build/coverage/python.txt
- name: Test uninstall
run: python3 -m pip uninstall -y shell-logger
commits:
runs-on: ubuntu-latest
steps:
- name: Conventional Commits
uses: taskmedia/[email protected]
with:
types: >
build|chore|ci|docs|feat|fix|minor|patch|perf|style|refactor|test