Build #10
Workflow file for this run
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 | |
run-name: Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
# container: | |
# image: python:${{ matrix.python-version }} | |
# env: | |
# # environment variables for primary container | |
# env: | |
# PIPENV_VENV_IN_PROJECT: true | |
strategy: | |
matrix: | |
python-version: | |
- 3.9.6 | |
- 3.9.8 | |
- 3.9.9 | |
- 3.9.10 | |
- 3.9.11 | |
- 3.9.12 | |
- 3.9.13 | |
- 3.9.16 | |
- 3.10.0 | |
- 3.10.1 | |
- 3.10.2 | |
- 3.10.3 | |
- 3.10.4 | |
- 3.10.10 | |
steps: | |
- uses: actions/[email protected] | |
# - run: sudo chown -R circleci:circleci /usr/local/bin | |
- uses: actions/setup-python@v4 | |
id: cache-deps | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pipenv' | |
# - name: restore_cache | |
# uses: actions/[email protected] | |
# with: | |
# key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }} | |
# path: venv | |
- name: install pipenv | |
run: pip3 install pipenv | |
- if: steps.cache-deps.outputs.cache-hit != 'true' | |
name: instal env | |
run: pipenv install --dev | |
- run: make test | |
- run: make coverage | |
# docs-build-deploy: | |
# if: github.ref == 'refs/heads/master' | |
# runs-on: ubuntu-latest | |
# container: | |
# image: python:${{ env.python-version }} | |
# env: | |
# PIPENV_VENV_IN_PROJECT: true | |
# needs: release | |
# steps: | |
# - uses: actions/[email protected] | |
# - run: sudo chown -R circleci:circleci /usr/local/bin | |
# - name: restore_cache | |
# uses: actions/[email protected] | |
# with: | |
# key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }} | |
# path: venv | |
# - run: make setup | |
# - run: | | |
# git config --local user.email "[email protected]" | |
# git config --local user.name "gh-pages deploy bot" | |
# make gh-pages | |
# release: | |
# if: github.ref == 'refs/heads/master' | |
# needs: test | |
# runs-on: ubuntu-latest | |
# container: | |
# image: python:${{ env.python-version }} | |
# env: | |
# PIPENV_VENV_IN_PROJECT: true | |
# steps: | |
# - uses: actions/[email protected] | |
# - name: setup pypi | |
# run: |- | |
# echo "[pypi]" >> ~/.pypirc | |
# echo "username=__token__" >> ~/.pypirc | |
# echo "password=$PYPI_TOKEN" >> ~/.pypirc | |
# - name: release | |
# run: | | |
# python3 -m pip install --upgrade twine | |
# make build | |
# python3 -m twine upload --repository pypi dist/* | |
# echo "deployed to pypi" |