Skip to content

Commit

Permalink
actions(wikijs): Add test action
Browse files Browse the repository at this point in the history
  • Loading branch information
finloop committed Nov 22, 2023
1 parent dc8f62c commit 27c2d34
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/chatlib.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Python application

on: pull_request

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Run image
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.7"
- uses: actions/cache@v3
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install dev dependencies
run: |
poetry install --with dev
- name: Run the automated tests (for example)
run: poetry run pytest
env:
WIKIJS_API_TOKEN: ${{ secrets.WIKIJS_API_TOKEN }}

0 comments on commit 27c2d34

Please sign in to comment.