foxhole/.forgejo/workflows/test.yml
SouthFox 92a8ecffd6
Some checks failed
/ run-pytest (push) Failing after 1m16s
[ci] update python version
2024-09-30 00:33:48 +08:00

28 lines
767 B
YAML

on: [push]
jobs:
run-pytest:
container:
image: nikolaik/python-nodejs:python3.12-nodejs22
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 --envfile .env.test -vvv
- name: Cache poetry project dependencies
uses: actions/cache/save@v4
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}