-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.07 KB
/
ci.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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ci-tests-${{ github.ref }}-1
cancel-in-progress: true
jobs:
ci:
name: Build, Lint, Test
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Load SSH key into GitHub for 1Password Python SDK
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.PLOVER_1PASSWORD_PRIVATE_KEY }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Test, Coverage, Lint, Type Checking Dependencies
run: |
pip install pytest pytest-mock pylint mypy coverage
pip install -e ".[test]"
- name: Run Linter
run: pylint plover_1password
- name: Run Type Checker
run: mypy plover_1password
- name: Run Tests
run: pytest
- name: Run Coverage
run: |
coverage run --module pytest
coverage report --show-missing