Merge pull request #515 from AbsaOSS/release/1.10.0 #276
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: 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 |