-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 898 Bytes
/
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
name: CI
on:
push:
branches:
- master
pull_request:
# manually trigger workflow
workflow_dispatch:
jobs:
run_test_suite:
name: Run Test Suite, Style Guide, & Code Checks
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Python 3.11
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Pipx & Poetry
run: |
python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install poetry
- name: Install Dependencies & Test Dependencies
run: poetry install
- name: Style Guide Check & Code Check
run: poetry run pre-commit run -a
- name: Run Pytest
run: poetry run pytest -v