Skip to content

Commit

Permalink
Automatically check that PRs to the latest branch pass all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gherka authored Aug 26, 2024
1 parent 7e733fe commit 04ba4be
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/pr_tests_latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will install Exhibit and its Python dependencies and run the tests

name: Testing Pull Requests

on:
pull_request:
branches: [ "latest" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

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

0 comments on commit 04ba4be

Please sign in to comment.