update dependencies #311
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: build | |
on: | |
push: | |
tags-ignore: | |
- '**' | |
branches: | |
- '**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
env: | |
PYTHON_ENV: ci | |
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11"] | |
steps: | |
- name: checkout code | |
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: 7 | |
- name: Install dependencies | |
run: make install | |
- name: run lint | |
run: make test-lint | |
- name: tests | |
run: make test | |
- name: upload coverage | |
if: matrix.python-version == '3.11' | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./build/coverage.xml | |
- name: publish | |
if: ${{ github.ref == 'refs/heads/main' && matrix.python-version == '3.11' && github.event.head_commit.message == 'release' }} | |
run: make publish |