Skip to content

chore(deps-dev): bump cryptography from 41.0.3 to 41.0.6 #117

chore(deps-dev): bump cryptography from 41.0.3 to 41.0.6

chore(deps-dev): bump cryptography from 41.0.3 to 41.0.6 #117

Workflow file for this run

name: ci-cd
on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Check-out repository
uses: actions/checkout@v2
- name: Install poetry
uses: snok/install-poetry@v1
- name: Install package
run: poetry install
- name: Run pylint
run: poetry run pylint --rcfile pylint.rc pydisadm/**/*.py
- name: Run pytest
run: poetry run pytest tests/ --cov=pydisadm --cov-report=xml
- name: Upload to codecov
uses: codecov/codecov-action@v2
with:
files: ./coverage.xml
cd:
needs: ci
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Check-out repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install poetry
uses: snok/install-poetry@v1
- name: Install package
run: poetry install
- name: PSR Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name github-actions
git config user.email github-actions@github.com
poetry run semantic-release publish
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Test install from TestPyPI
run: |
pip install \
--index-url https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple \
pydisadm
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}