foxhole/.forgejo/workflows/test.yml

29 lines
750 B
YAML
Raw Normal View History

2024-02-26 14:27:11 +01:00
on: [push]
jobs:
build-uberjar:
container:
image: nikolaik/python-nodejs:python3.11-nodejs21
steps:
- uses: actions/checkout@v3
- name: Restore poetry project dependencies
uses: actions/cache/restore@v4
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
- name: Install poetry
run: |
pip install poetry
- name: Run test
run: |
poetry install --no-root
poetry run pytest -vvv
- name: Cache poetry project dependencies
uses: actions/cache/save@v4
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}