From a46594beacbc04a3b551c6502de485ad85e73eea Mon Sep 17 00:00:00 2001 From: SouthFox Date: Mon, 26 Feb 2024 21:27:11 +0800 Subject: [PATCH] [ci] add pytest workflow --- .forgejo/workflows/test.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .forgejo/workflows/test.yml diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml new file mode 100644 index 0000000..0a197e5 --- /dev/null +++ b/.forgejo/workflows/test.yml @@ -0,0 +1,19 @@ +on: [push] +jobs: + run-pytest: + runs-on: docker + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + cache: 'poetry' + + - name: Install poetry + run: | + apt install pipx + pipx install poetry + + - run: poetry install + - run: poetry run pytest