Skip to content

Commit

Permalink
Merge pull request #140 from lkluft/add-docs-ci
Browse files Browse the repository at this point in the history
Revise GitHub Actions
  • Loading branch information
tmieslinger authored Aug 22, 2024
2 parents 95e8a59 + ad930eb commit 89e435d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

name: Python package

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
on: [push, pull_request]

jobs:
build:
Expand All @@ -28,9 +24,12 @@ jobs:
generate-run-shell: true
environment-name: testenv
environment-file: environment.yml
- name: pre-commit
uses: pre-commit/action@v3.0.0
- name: Run pytest in micromamba environment
run: |
micromamba install -n testenv pytest
micromamba run -n testenv pytest --import-mode=importlib .
- name: pre-commit
uses: pre-commit/action@v3.0.0
- name: Build docs
run: |
micromamba run -n testenv sphinx-build -n -b html docs/source/ docs/build/

0 comments on commit 89e435d

Please sign in to comment.