update dockerfile #150
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: 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/redis-github-action@1.2.0 | |
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 }} |