Skip to content

Commit

Permalink
Merge pull request #252 from voxpupuli/ci
Browse files Browse the repository at this point in the history
CI: Run on PRs and merges
  • Loading branch information
bastelfreak authored Oct 8, 2023
2 parents bcbad95 + ed53fef commit 18b1065
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/build-docs.yml

This file was deleted.

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

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

jobs:
test:
Expand Down Expand Up @@ -53,11 +58,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 18b1065

Please sign in to comment.