[ci] add pytest workflow
Some checks failed
/ build-uberjar (push) Failing after 10s

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

View file

@ -0,0 +1,31 @@
on: [push]
jobs:
build-uberjar:
runs-on: docker
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: Setup python
run: |
apt install software-properties-common
add-apt-repository ppa:deadsnakes/ppa
apt update
apt install python3.12 -y
- name: Install poetry
run: |
apt install pipx -y
pipx install poetry
- name: Cache poetry project dependencies
uses: actions/cache/save@v4
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}