Skip to content

Bump pyyaml from 6.0 to 6.0.1 #423

Bump pyyaml from 6.0 to 6.0.1

Bump pyyaml from 6.0 to 6.0.1 #423

Workflow file for this run

---
name: 'checks'
'on':
pull_request:
branches:
- 'main'
push:
branches:
- 'main'
jobs:
linting:
runs-on: 'ubuntu-latest'
steps:
- name: 'Checkout repo'
uses: 'actions/checkout@v3'
- name: Install poetry
run: pipx install poetry
- name: 'Set up Python 3.11'
uses: actions/setup-python@v4
with:
cache: 'poetry'
python-version: '3.11'
- name: 'Configure Poetry'
run: poetry config virtualenvs.in-project true
- name: 'Install dependencies'
run: 'poetry install'
- name: 'Lint with yamllint'
run: 'poetry run yamllint . -s'
- name: 'Lint with pylama'
run: "poetry run pylama -v --skip '.venv/*'"
unit-tests:
runs-on: 'ubuntu-latest'
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
steps:
- name: 'Checkout repo'
uses: 'actions/checkout@v3'
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: 'actions/setup-python@v4'
with:
cache: 'poetry'
python-version: ${{ matrix.python-version }}
- name: 'Configure Poetry'
run: poetry config virtualenvs.in-project true
- name: 'Check pyproject.toml'
run: 'poetry check'
- name: 'Install dependencies'
run: 'poetry install'
- name: 'Test with green'
# test with one test for now
run: |
poetry run green tests
poetry run coverage xml
- name: 'Run a test module build and install'
run: |
poetry build
pip install dist/cert_manager-*.tar.gz