Skip to content

Commit

Permalink
run pytest on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
syou6162 committed Sep 17, 2023
1 parent 61fe557 commit 7893168
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tests

on:
- push
- pull_request

jobs:
tests:
name: Run pytest
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"

- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Install Poetry
run: |
pip install --constraint=.github/workflows/constraints.txt poetry
poetry --version
- name: Install required packages
run: |
poetry install
- name: Run pytest
run: |
poetry run python -m pytest

0 comments on commit 7893168

Please sign in to comment.