mirror of
https://github.com/The-Swarm-Corporation/AutoHedge.git
synced 2026-10-27 07:32:48 +08:00
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
42 lines
882 B
YAML
42 lines
882 B
YAML
name: Continuous Integration
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.10'
|
|
|
|
- name: Install dependencies
|
|
run: pip install --no-cache-dir -r requirements.txt
|
|
|
|
- name: Run unit tests
|
|
run: pytest tests/unit
|
|
|
|
- name: Run integration tests
|
|
run: pytest tests/integration
|
|
|
|
- name: Run code coverage
|
|
run: pytest --cov=swarms tests/
|
|
|
|
- name: Run linters
|
|
run: pylint swarms
|
|
|
|
- name: Build documentation
|
|
run: make docs
|
|
|
|
- name: Validate documentation
|
|
run: sphinx-build -b linkcheck docs build/docs
|
|
|
|
- name: Run performance tests
|
|
run: pytest tests/performance |