microblog.pub/.github/workflows/ci.yml

23 lines
487 B
YAML
Raw Normal View History

2022-06-22 20:24:32 +02:00
on:
push:
branches:
- 'v2'
2022-06-22 20:27:51 +02:00
jobs:
tests:
2022-06-22 20:30:53 +02:00
runs-on: ubuntu-latest
2022-06-22 20:44:29 +02:00
env:
MICROBLOGPUB_CONFIG_FILE: tests.toml
2022-06-22 20:27:51 +02:00
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'poetry'
2022-06-22 20:38:49 +02:00
- run: |
2022-06-22 20:40:23 +02:00
poetry env use "3.10"
poetry install --no-interaction
2022-06-22 21:15:38 +02:00
- run: poetry run inv lint
2022-06-22 20:55:45 +02:00
- run: poetry run inv tests