forked from TruFoundation/TruShell
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 1022 Bytes
/
python-ci.yml
File metadata and controls
43 lines (33 loc) · 1022 Bytes
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
name: Python CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install build tools
run: python -m pip install --upgrade hatchling build
- name: Install package and dev dependencies
# CHANGE THIS LINE: Added [dev] to install pytest and other test tools
run: python -m pip install -e ".[dev]"
- name: Run tests
run: python -m pytest
- name: Check CLI help
run: |
python -m trushell --help
trushell --help
- name: Build wheel
run: python -m build --wheel