Skip to content

Fix: Tidak jadi pakai workflow_call #15

Fix: Tidak jadi pakai workflow_call

Fix: Tidak jadi pakai workflow_call #15

Workflow file for this run

# This file is part of DataSae and is released under
# the AGPL-3.0-only License: https://opensource.org/license/agpl-v3/
name: Python Application
on: [pull_request, push]
jobs:
lint:
name: Linter Test
runs-on: ubuntu-latest
container:
image: pipelinecomponents/flake8
steps:
- uses: actions/checkout@v3
- name: Lint with flake8
run: flake8
unittest:
name: Unit Test
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' || contains('refs/heads/main refs/heads/develop', github.ref)
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.7
uses: actions/setup-python@v3
with:
python-version: '3.7'
- name: Install dependencies
run: pip install .
- name: Test
run: python -m unittest
build:
name: Build Python Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.7
uses: actions/setup-python@v3
with:
python-version: '3.7'
- run: python -m build -h