25 lines
480 B
YAML
25 lines
480 B
YAML
|
name: Test with pytest
|
||
|
|
||
|
on: [push, pull_request]
|
||
|
|
||
|
jobs:
|
||
|
test:
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@main
|
||
|
|
||
|
- name: Set up Python 3
|
||
|
uses: actions/setup-python@main
|
||
|
with:
|
||
|
python-version: "3.x"
|
||
|
|
||
|
- name: Install Poetry
|
||
|
run: curl https://install.python-poetry.org | python -
|
||
|
|
||
|
- name: Install dependencies
|
||
|
run: poetry install
|
||
|
|
||
|
- name: Run pytest
|
||
|
run: poetry run python -m pytest
|