this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

👷 Setup github CI

+46
+46
.github/workflows.yml
··· 1 + name: builds 2 + 3 + on: 4 + push: 5 + branches: [develop, main] 6 + tags: 7 + - "v\\d+\\.\\d+\\.\\d+[ab]?" 8 + workflow_dispatch: 9 + 10 + jobs: 11 + python: 12 + runs-on: ubuntu-latest 13 + env: 14 + POETRY_VIRTUALENVS_CREATE: false 15 + steps: 16 + - uses: actions/checkout@v2 17 + - uses: actions/setup-python@v2 18 + with: 19 + python-version: 3.10 20 + - name: Set up Poetry cache for Python dependencies 21 + uses: actions/cache@v2 22 + if: startsWith(runner.os, 'Linux') 23 + with: 24 + path: ~/.cache/pypoetry 25 + key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} 26 + restore-keys: ${{ runner.os }}-poetry- 27 + - name: Set up pre-commit cache 28 + uses: actions/cache@v2 29 + if: startsWith(runner.os, 'Linux') 30 + with: 31 + path: ~/.cache/pre-commit 32 + key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} 33 + restore-keys: ${{ runner.os }}-pre-commit- 34 + - name: Install Poetry 35 + run: | 36 + curl -sSL https://install.python-poetry.org | python3 - 37 + echo "$HOME/.poetry/bin" >> $GITHUB_PATH 38 + - name: Install dependencies 39 + run: poetry install --no-interaction -E fastapi 40 + - name: Run pre-commit hooks 41 + run: pre-commit run --all-files 42 + - name: Run unit tests 43 + run: pytest 44 + - name: Build Python package and publish to PyPI 45 + if: startsWith(github.ref, 'refs/tags/') 46 + run: poetry publish --build -u __token__ -p ${{ secrets.PYPI_TOKEN }}