Skip to content

Commit

Permalink
CI: Run on PRs and merges
Browse files Browse the repository at this point in the history
This is the same pattern we use in our other repos.
  • Loading branch information
bastelfreak committed Oct 8, 2023
1 parent bcbad95 commit 33b1566
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 24 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/build-docs.yml

This file was deleted.

24 changes: 23 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: tests (unit)

on: [push, pull_request]
on:
pull_request: {}
push:
branches:
- master

jobs:
test:
Expand Down Expand Up @@ -53,11 +57,29 @@ jobs:
- name: Run bandit
run: |
bandit -r pypuppetdb
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install --upgrade -r docs/requirements.txt
python setup.py develop
- name: Build docs
run: |
cd docs
make html
tests:
needs:
- test
- black-formatting
- security
- build-docs
runs-on: ubuntu-latest
name: Test suite
steps:
Expand Down

0 comments on commit 33b1566

Please sign in to comment.