-
Notifications
You must be signed in to change notification settings - Fork 35
76 lines (64 loc) · 1.61 KB
/
validate.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
68
69
70
71
72
73
74
75
76
name: 'Validation'
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint-style:
name: Linting and Styling
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Dependencies
uses: './.github/actions/dep-setup'
with:
python-version: '3.10'
- name: Run Styling Enforcement
shell: bash
run: poetry poe check
# TODO: As soon as the repo is in a state to enable this, we'll do so.
# - name: Run Style Linting Enforcement
# shell: bash
# run: poetry poe lint
unit-tests:
name: Run Unit Tests
strategy:
matrix:
version: ['3.8', '3.9', '3.10', '3.11']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Source
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Dependencies
uses: './.github/actions/dep-setup'
with:
python-version: '${{ matrix.version }}'
- name: Run Tests
shell: bash
run: poetry poe test
- name: Codecov
uses: codecov/codecov-action@v3
security:
name: Run Security Checks
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Dependencies
uses: './.github/actions/dep-setup'
with:
python-version: '3.10'
- name: Run Security Checks
shell: bash
run: poetry poe safety