-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 786 Bytes
/
ci-python.yml
File metadata and controls
36 lines (30 loc) · 786 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
name: CI Python (legacy POC)
on:
push:
branches: [main]
paths:
- 'legacy/python-cli/**'
- '.github/workflows/ci-python.yml'
pull_request:
branches: [main]
paths:
- 'legacy/python-cli/**'
- '.github/workflows/ci-python.yml'
jobs:
test:
name: Python Tests (legacy)
runs-on: ubuntu-latest
defaults:
run:
working-directory: legacy/python-cli
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: pip
cache-dependency-path: legacy/python-cli/requirements.txt
- name: Install dependencies
run: pip install -r requirements.txt pytest
- name: Run tests
run: python -m pytest tests/ -v