Skip to content

Commit

Permalink
Configure GitHub workflow to run pytest.
Browse files Browse the repository at this point in the history
  • Loading branch information
donkirkby committed Oct 20, 2023
1 parent d42234e commit 74965f4
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
time: "13:00"
open-pull-requests-limit: 10
- package-ecosystem: bundler
directory: "/docs"
schedule:
interval: daily
time: "13:00"
open-pull-requests-limit: 10
30 changes: 30 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python application

on:
- push
- pull_request

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pipenv
pipenv install --dev
- name: Test with pytest
env:
PYTHONPATH: .
run: |
pipenv run pytest

0 comments on commit 74965f4

Please sign in to comment.