Skip to content

Commit

Permalink
add github action to test
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmelix committed Aug 16, 2024
1 parent d69e4d8 commit d81b148
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will install Python dependencies, run tests and ruff with a single version of Python

name: Basic tests

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

permissions:
contents: read

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with Ruff
run: |
pip install ruff
ruff check --output-format=github .
continue-on-error: false
- name: Test with pytest
run: |
pip install pytest
pytest

0 comments on commit d81b148

Please sign in to comment.