This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
Add support for multiple missing features #33
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.12 | |
- 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.8' | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
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: SEED_DIR=fixtures/integration_test 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 |