Add event querying and payment_intent events #259
Workflow file for this run
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: tests | |
on: | |
push: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
lint: | |
name: Linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.13 | |
- run: pip install flake8 flake8-import-order doc8 Pygments | |
- run: flake8 . | |
- run: doc8 README.rst | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
- '3.13' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.pyver }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.pyver }} | |
- run: pip install 'pip >=23' build | |
- run: python -m build | |
- run: pip install dist/localstripe-*.tar.gz | |
- run: python -m localstripe & | |
# Wait for server to be up: | |
- run: > | |
timeout=5; while [ $((timeout--)) -ge 0 ]; do | |
nc -z -w 1 localhost 8420; r=$?; [ $r -eq 0 ] && break; sleep 1; | |
done; exit $r | |
- run: ./test.sh |