Skip to content

Commit

Permalink
Merge pull request #1 from RyushiAok/ci/test
Browse files Browse the repository at this point in the history
ci: pytest
  • Loading branch information
RyushiAok authored Jun 19, 2023
2 parents 6f3f1a5 + 943c982 commit ddacec1
Show file tree
Hide file tree
Showing 3 changed files with 298 additions and 218 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Pytest

on: [push]

jobs:
build:
strategy:
matrix:
python-version: ["3.11"]
poetry-version: ["1.5.1"]

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}

- name: Cache
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
run: |
poetry install --no-root
- name: Run pytest
run: |
poetry run pytest
Loading

0 comments on commit ddacec1

Please sign in to comment.