Skip to content
14 changes: 8 additions & 6 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application
name: Python CI

on:
push:
branches: [ "main" ]
branches: [ "develop" ]
pull_request:
branches: [ "main" ]
branches: [ "develop" ]

permissions:
contents: read

jobs:
build:

ci:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"

- name: Poetry Install
uses: ClementWalter/poetry-action@v1
with: bash

- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down