Skip to content

Commit

Permalink
added PR pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
MartenBE committed Nov 6, 2024
1 parent d00d385 commit 64018d4
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/configure-pages@v5
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: "3.x"
- run: pip install poetry
- run: poetry install --with dev
- run: poetry run ruff format --check
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
pull_request:
types:
- opened
- reopened
- synchronize

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- run: pip install poetry
- run: poetry install --with dev
- run: poetry run ruff format --check
# - run: poetry run ruff check # TODO: Enable this line
# - run: poetry run mypy src/ tests/ # TODO: Enable this line
- run: poetry run pytest

0 comments on commit 64018d4

Please sign in to comment.