Skip to content

Commit

Permalink
Merge pull request #63 from Javakky/javakky/test-action
Browse files Browse the repository at this point in the history
github actions を分割
  • Loading branch information
Javakky authored Mar 10, 2022
2 parents 4d84178 + 3eac536 commit ff891b4
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@

name: Python Test

on:
push:
pull_request:
branches:
- master

on: [push]

jobs:
pytest:
name: Run tests with pytest
Expand All @@ -20,9 +16,15 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: 3.10.2
- name: Run Tests
- name: Install Poetry
run: |
pip install poetry
poetry install
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install Dependencies
run: poetry install --no-interaction
- name: Check Lint
run:
poetry run task lint
- name: Run Test
run:
poetry run task test

0 comments on commit ff891b4

Please sign in to comment.