-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (59 loc) · 1.67 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
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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Setup Dependencies
uses: './.github/actions/deps'
with:
python-version: '3.13'
- name: Run Styling Enforcement
shell: bash
run: poetry run poe check
- name: Run Style Linting Enforcement
shell: bash
run: poetry run poe lint
unit-tests:
name: Run Unit Tests
strategy:
matrix:
version: ['3.9', '3.10', '3.11', '3.12', '3.13']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Source
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Setup Dependencies
uses: './.github/actions/deps'
with:
python-version: '${{ matrix.version }}'
- name: Run Tests
shell: bash
run: poetry run poe test
- name: Codecov
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
security:
name: Run Security Checks
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Setup Dependencies
uses: './.github/actions/deps'
with:
python-version: '3.13'
- name: Run Security Checks
shell: bash
run: poetry run poe security