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