Skip to content

Commit

Permalink
Create test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cmvanb authored Jun 18, 2024
1 parent b7bcef2 commit b3ad633
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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 test suite

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

permissions:
contents: read

jobs:
test:

runs-on: ubuntu-latest

steps:
- name: "Checkout repository"
uses: actions/checkout@v4

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

- name: "Install dependencies"
run: |
pip install --upgrade pip
pip install -r cookbook/requirements.txt
- name: "Run test suite"
run: coverage run -m pytest

0 comments on commit b3ad633

Please sign in to comment.