Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 1 addition & 63 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ jobs:
python -m pip install --upgrade pip
pip install -e ".[dev]"

- name: Run unit tests
run: |
python -m pytest tests/ -v

- name: Run integration tests
- name: Run tests
run: |
python -m pytest tests/ -v

Expand All @@ -60,61 +56,3 @@ jobs:
flags: unittests
name: codecov-umbrella

lint:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"

# - name: Run linting
# run: |
# ruff check fasthttp/

# - name: Run type checking
# run: |
# mypy fasthttp/ --ignore-missing-imports

benchmark:
runs-on: ubuntu-latest
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]" pytest-benchmark

- name: Run benchmarks
run: |
python -m pytest tests/benchmark/ --benchmark-only --benchmark-autosave

- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'pytest'
output-file-path: .github/benchmarks/benchmarks.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
alert-threshold: '150%'
comment-on-alert: true