Merge branch 'dev' #162
This file contains hidden or 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: ci | |
| on: [push, pull_request] | |
| env: | |
| sapic_redis_url: "redis://localhost" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Start Redis | |
| uses: supercharge/[email protected] | |
| with: | |
| redis-version: 4 | |
| - name: Install dependencies | |
| run: | | |
| pip install codecov | |
| pip install -r requirements/dev.txt | |
| - name: Test & upload report to coverage | |
| run: | | |
| cd src && coverage run -m unittest discover -p "test_*.py" && codecov --token ${{ secrets.CODECOV_TOKEN }} |