From 0b12ef434d7ce1021cee060508081d7be0c0577c Mon Sep 17 00:00:00 2001 From: Bruno Toshio Sugano Date: Sat, 7 Oct 2023 13:00:38 +0900 Subject: [PATCH] add github actions --- .github/workflows/testing.yaml | 25 +++++++++++++++++++++++++ Makefile | 4 ---- 2 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/testing.yaml diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml new file mode 100644 index 0000000..9a6d5f0 --- /dev/null +++ b/.github/workflows/testing.yaml @@ -0,0 +1,25 @@ +name: Tests + +on: + push: + branches: [ master ] + pull_request: + +jobs: + test: + + runs-on: ubuntu-latest + strategy: + matrix: + python: ["3.8", "3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python }} + - name: Install tox + run: pip install tox + - name: Run tox + run: tox -e py diff --git a/Makefile b/Makefile index 954ff0c..9cda353 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,3 @@ test: .PHONY: black black: poetry run black . - -.PHONY: pre -pre: - poetry run pre-commit run --all-files