This commit is contained in:
parent
d23818e318
commit
30600d0ce2
1 changed files with 29 additions and 0 deletions
29
.forgejo/workflows/test.yml
Normal file
29
.forgejo/workflows/test.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
build-uberjar:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install poetry
|
||||||
|
run: pipx install poetry
|
||||||
|
|
||||||
|
- 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: Cache poetry project dependencies
|
||||||
|
uses: actions/cache/save@v4
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pypoetry
|
||||||
|
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
|
Loading…
Reference in a new issue