From 71fe10621a874eaef34ebaf7cbee905016e8d8e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Budy=C5=9B?= Date: Thu, 3 Nov 2022 20:49:44 +0100 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..7f2857f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,35 @@ +name: manga-ocr + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + path: manga_ocr + + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: "3.9" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pytest + pip install -e manga_ocr + + - name: Test + run: | + pytest manga_ocr/tests