Bump mock from 5.0.2 to 5.1.0 (#185) #419
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: '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 |