From 0e0b0d3c96e528495e32a05964e4f7900ea70e08 Mon Sep 17 00:00:00 2001 From: HiraiKyo Date: Thu, 8 Aug 2024 15:16:43 +0900 Subject: [PATCH] =?UTF-8?q?Github=20Actions=E3=81=A7=E8=87=AA=E5=8B=95?= =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/python-package.yml | 42 ++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/python-package.yml diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml new file mode 100644 index 0000000..fe21e00 --- /dev/null +++ b/.github/workflows/python-package.yml @@ -0,0 +1,42 @@ +name: Python Package + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8"] + + steps: + - 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/get-poetry.py | python - + echo "$HOME/.poetry/bin" >> $GITHUB_PATH + - name: Poetry Version + run: | + poetry --version + - name: Poetry Install Dependencies + run: | + poetry install --no-interaction + - name: Run tests with pytest + run: | + poetry run pytest + - name: Run type checking with mypy + run: | + poetry run mypy ply_processor + - name: Run linting with ruff + run: | + poetry run ruff ply_processor \ No newline at end of file