PamGram/.github/workflows/test.yml

37 lines
780 B
YAML
Raw Normal View History

2022-09-12 09:24:33 +00:00
name: test
2022-09-12 08:24:04 +00:00
on:
push:
2022-09-12 08:24:04 +00:00
branches:
- main
paths:
- 'tests/**'
pull_request:
types: [ opened, synchronize ]
paths:
- 'modules/apihelper/**'
- 'modules/wiki/**'
- 'tests/**'
schedule:
- cron: '0 4 * * 3'
2022-09-12 08:24:04 +00:00
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
2022-09-12 09:24:33 +00:00
- name: Install poetry
2022-09-12 08:24:04 +00:00
run: |
pip install --upgrade poetry
2022-09-12 09:24:33 +00:00
poetry config virtualenvs.create false
- name: Install dependencies
run: |
2022-09-12 08:24:04 +00:00
poetry install
poetry install --extras test
- name: Test with pytest
run: |
2022-09-12 09:24:33 +00:00
python -m pytest