Skip to content

Merge pull request #9 from djjudas21/dependabot/pip/urllib3-1.26.18 #44

Merge pull request #9 from djjudas21/dependabot/pip/urllib3-1.26.18

Merge pull request #9 from djjudas21/dependabot/pip/urllib3-1.26.18 #44

Workflow file for this run

---
name: Test
on:
push:
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# install & configure poetry
- name: Install Poetry
uses: snok/[email protected]
with:
virtualenvs-create: true
# install dependencies
- name: Install dependencies
run: poetry install
- name: Run pylint
run: "poetry run pylint --rcfile=.pylintrc kubedownscaler/*.py"
build:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
# install & configure poetry
- name: Install Poetry
uses: snok/[email protected]
with:
virtualenvs-create: true
# install dependencies
- name: Install dependencies
run: poetry install
- name: Build Python package
run: poetry build