Skip to content

Add GitHub Action

Add GitHub Action #3

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
set -ex
python -m pip install --upgrade pip
curl -sSL https://install.python-poetry.org | python - --version 1.8.2
poetry install
working-directory: python
- name: Test with pytest
run: |
poetry run pytest
working-directory: python
- name: Check Code
run: |
poetry run autopep8 --jobs 0 --exit-code --diff .
working-directory: python