-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (38 loc) · 1.01 KB
/
Copy pathci.yml
File metadata and controls
44 lines (38 loc) · 1.01 KB
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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ci-tests-${{ github.ref }}-1
cancel-in-progress: true
jobs:
ci:
if: ${{ !startsWith(github.ref, 'refs/tags') }}
name: Build, Lint, Test
runs-on: macos-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Test, Coverage, Lint, Type Checking Dependencies
# Ensure that PyXA is installed as a test dependency
run: |
pip install pytest pytest-mock pylint mypy coverage
pip install -e ".[test]"
- name: Run Linter
run: pylint plover_run_applescript
- name: Run Type Checker
run: mypy plover_run_applescript
- name: Run Tests
run: pytest
- name: Run Coverage
run: |
coverage run --module pytest
coverage report --show-missing