Merge pull request #11 from Meetesh-Saini/main #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: flask-limiter | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flask-limiter flask | |
- name: Test initialization | |
run: | | |
python -c "from flask import Flask; app = Flask(__name__); from flask_limiter import Limiter; from flask_limiter.util import get_remote_address; Limiter(get_remote_address, app=app)" |