Create main.yml

This commit is contained in:
Maciej Budyś
2022-11-03 20:49:44 +01:00
committed by GitHub
parent 3102f44c96
commit 71fe10621a

35
.github/workflows/main.yml vendored Normal file
View File

@@ -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