-
Notifications
You must be signed in to change notification settings - Fork 64
58 lines (47 loc) · 1.29 KB
/
Copy pathci.yml
File metadata and controls
58 lines (47 loc) · 1.29 KB
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
name: CI
on:
pull_request:
push:
branches:
- main
- develop
permissions:
contents: read
jobs:
test:
name: Test and package Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.11"
- "3.12"
- "3.13"
- "3.14"
steps:
- name: Check out repository
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install package with development extras
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]" build twine
- name: Run tests
run: pytest
- name: Run Django checks
run: python manage.py check
- name: Check migrations are current
run: python manage.py makemigrations --check --dry-run
- name: Compile Python sources
run: python -m compileall tradingcodex_cli tradingcodex_service apps tests
- name: Build distributions
run: python -m build
- name: Validate distribution metadata
run: python -m twine check dist/*