[ci] add pytest workflow
All checks were successful
/ build-uberjar (push) Successful in 2m35s

This commit is contained in:
SouthFox 2024-02-26 21:27:11 +08:00
parent d23818e318
commit e4fff0bbcc

View file

@ -0,0 +1,23 @@
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: Cache poetry project dependencies
uses: actions/cache/save@v4
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}