Skip to content

Merge pull request #515 from AbsaOSS/release/1.10.0 #276

Merge pull request #515 from AbsaOSS/release/1.10.0

Merge pull request #515 from AbsaOSS/release/1.10.0 #276

Workflow file for this run

name: python_ci
on:
pull_request:
paths:
- "pramen-py/**"
- ".github/workflows/python.yml"
push:
branches: [ main ]
paths:
- "pramen-py/**"
- ".github/workflows/python.yml"
workflow_dispatch:
defaults:
run:
shell: bash
working-directory: "./pramen-py"
jobs:
lint:
strategy:
matrix:
python-version: [ "3.10"]
os-name: [ ubuntu-latest ]
runs-on: ${{ matrix.os-name }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: setup poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.4.2
- name: install dependencies
run: make --silent install
- name: lint
run: make --silent pre-commit
test:
strategy:
matrix:
python-version: [ "3.7", "3.8", "3.9", "3.10"]
os-name: [ ubuntu-latest ]
runs-on: ${{ matrix.os-name }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: setup poetry
uses: abatilo/actions-poetry@v2.1.6
with:
poetry-version: 1.4.2
- name: install dependencies
run: make --silent install
- name: test
env:
ENV: ci
run: make --silent test