Skip to content

Commit

Permalink
Merge pull request #6 from kuczynskimaciej1/yml_pipeline
Browse files Browse the repository at this point in the history
Create python-app.yml
  • Loading branch information
ikarmus2001 authored Mar 26, 2024
2 parents 3e897f6 + 6456c74 commit 1a8c9bb
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Python application

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

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/[email protected]
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
python -m pytest

0 comments on commit 1a8c9bb

Please sign in to comment.