Skip to content

Commit

Permalink
Merge pull request #7 from ubie-oss/register-ci
Browse files Browse the repository at this point in the history
Add settings for github actions
  • Loading branch information
takahi-i authored Feb 12, 2022
2 parents eb25ca2 + 1889672 commit d9afd1d
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: pytest

on:
push:
branches:
- master
pull_request:
branches:
- master

env:
POETRY_VERSION: 1.1.7
POETRY_URL: https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py

jobs:
test:
name: Run tests with pytest
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
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: Run Tests
run: make test

0 comments on commit d9afd1d

Please sign in to comment.