-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (56 loc) · 1.51 KB
/
tests.yaml
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
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 * * 0'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: pre-commit/[email protected]
test:
needs: linting
name: ${{ matrix.os }}, ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Env
shell: bash
run: |
python -m pip install -e .[all]
- name: Check and Log Environment
shell: bash
run: |
python -V
python -m pip freeze
- name: Pylint
shell: bash
run: |
python -m pip install pylint
python -m pylint msal_requests_auth
- name: mypy
shell: bash
run: |
python -m pip install mypy types-requests
python -m mypy msal_requests_auth
- name: Test
shell: bash
run: |
python -m pytest --cov-report term-missing --cov=msal_requests_auth --cov-report xml
- uses: codecov/codecov-action@v3