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

23 lines
487 B
YAML
Raw Normal View History

2022-06-22 13:24:32 -05:00
on:
push:
branches:
- 'v2'
2022-06-22 13:27:51 -05:00
jobs:
tests:
2022-06-22 13:30:53 -05:00
runs-on: ubuntu-latest
2022-06-22 13:44:29 -05:00
env:
MICROBLOGPUB_CONFIG_FILE: tests.toml
2022-06-22 13:27:51 -05: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 13:38:49 -05:00
- run: |
2022-06-22 13:40:23 -05:00
poetry env use "3.10"
poetry install --no-interaction
2022-06-22 14:15:38 -05:00
- run: poetry run inv lint
2022-06-22 13:55:45 -05:00
- run: poetry run inv tests