Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Github Actions Pipeline #10

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Pygmalion Data Toolbox - Quality Control

permissions:
# This is required for actions/checkout
contents: read

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
python-version: 3.11
pdf-version: 2.4.5

jobs:
qualitycontrol:
name: Lint / Import / Style / Type Checks
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup PDM
id: setup_pdm
uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ env.python-version }} # Version range or exact version of a Python version to use, the same as actions/setup-python
version: ${{ env.pdm-version }} # Version of PDM to install
architecture: x64 # The target architecture (x86, x64) of the Python interpreter. the same as actions/setup-python
prerelease: false # Allow prerelease versions to be installed
enable-pep582: true # Enable PEP 582 package loading globally
cache: true
cache-dependency-path: '**/pdm.lock'

- name: Install dependencies
# Include Optional Dependencies from group 'dev' (lint / importcheck / stylecheck / typecheck)
run: pdm install -G dev

- name: Lint
if: success() || failure()
run: pdm lint

- name: Import Check
if: success() || failure()
run: pdm importcheck

- name: Style Check
if: success() || failure()
run: pdm stylecheck

- name: Type Check
if: success() || failure()
run: pdm typecheck