File tree Expand file tree Collapse file tree 4 files changed +165
-0
lines changed
Expand file tree Collapse file tree 4 files changed +165
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+ name : Ubuntu latest
5+
6+ on :
7+ push :
8+ branches : [ "dev" ]
9+ pull_request :
10+ branches : [ "dev" ]
11+
12+ jobs :
13+ build :
14+
15+ runs-on : ubuntu-latest
16+ strategy :
17+ fail-fast : false
18+ matrix :
19+ python-version : ["3.14"]
20+
21+ steps :
22+ - uses : actions/checkout@v4
23+ - name : Set up Rust
24+ uses : actions-rust-lang/setup-rust-toolchain@v1
25+ - name : Rust linting checks
26+ run : |
27+ cargo fmt --check
28+ - name : Rust library tests
29+ run : |
30+ cargo test --lib
31+ - name : Rust doc tests
32+ run : |
33+ cargo test --doc
34+ - name : Set up Python ${{ matrix.python-version }}
35+ uses : actions/setup-python@v3
36+ with :
37+ python-version : ${{ matrix.python-version }}
38+ - name : Install dependencies
39+ run : |
40+ python -m pip install --upgrade pip
41+ pip install .[dev] -v
42+ - name : Python Ruff linting
43+ run : |
44+ ruff check
45+ - name : Python Ruff formatting
46+ run : |
47+ ruff format --check
48+ - name : Python typing with Mypy
49+ run : |
50+ mypy --config-file pyproject.toml
51+ - name : Test with pytest and display Coverage
52+ run : |
53+ coverage run -m --source=rateslib pytest
54+ coverage report -m
Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+ name : Ubuntu minimum
5+
6+ on :
7+ push :
8+ branches : [ "dev" ]
9+ pull_request :
10+ branches : [ "dev" ]
11+
12+ jobs :
13+ build :
14+
15+ runs-on : ubuntu-latest
16+ strategy :
17+ fail-fast : false
18+ matrix :
19+ python-version : ["3.10"]
20+
21+ steps :
22+ - uses : actions/checkout@v4
23+ - name : Set up Rust
24+ uses : actions-rust-lang/setup-rust-toolchain@v1
25+ - name : Set up Python ${{ matrix.python-version }}
26+ uses : actions/setup-python@v3
27+ with :
28+ python-version : ${{ matrix.python-version }}
29+ - name : Install dependencies
30+ run : |
31+ python -m pip install --upgrade pip
32+ pip install -r requirements-minimum.txt
33+ pip install . -v
34+ - name : Test with pytest
35+ run : |
36+ pytest
Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+ name : Windows latest
5+
6+ on :
7+ push :
8+ branches : [ "dev" ]
9+ pull_request :
10+ branches : [ "dev" ]
11+
12+ jobs :
13+ build :
14+
15+ runs-on : windows-latest
16+ strategy :
17+ fail-fast : false
18+ matrix :
19+ python-version : ["3.14"]
20+ env :
21+ MPLBACKEND : Agg # https://github.com/orgs/community/discussions/26434
22+
23+ steps :
24+ - uses : actions/checkout@v4
25+ - name : Set up Rust
26+ uses : actions-rust-lang/setup-rust-toolchain@v1
27+ - name : Set up Python ${{ matrix.python-version }}
28+ uses : actions/setup-python@v3
29+ with :
30+ python-version : ${{ matrix.python-version }}
31+ - name : Install dependencies
32+ run : |
33+ python -m pip install --upgrade pip
34+ pip install .[dev] -v
35+ - name : Test with pytest
36+ run : |
37+ pytest
Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+ name : Windows minimum
5+
6+ on :
7+ push :
8+ branches : [ "dev" ]
9+ pull_request :
10+ branches : [ "dev" ]
11+
12+ jobs :
13+ build :
14+
15+ runs-on : windows-latest
16+ strategy :
17+ fail-fast : false
18+ matrix :
19+ python-version : ["3.10"]
20+ env :
21+ MPLBACKEND : Agg # https://github.com/orgs/community/discussions/26434
22+
23+ steps :
24+ - uses : actions/checkout@v4
25+ - name : Set up Rust
26+ uses : actions-rust-lang/setup-rust-toolchain@v1
27+ - name : Set up Python ${{ matrix.python-version }}
28+ uses : actions/setup-python@v3
29+ with :
30+ python-version : ${{ matrix.python-version }}
31+ - name : Install dependencies
32+ run : |
33+ python -m pip install --upgrade pip
34+ pip install -r requirements-minimum.txt
35+ pip install . -v
36+ - name : Test with pytest
37+ run : |
38+ pytest
You can’t perform that action at this time.
0 commit comments