From 68f68ffcdbbe78921c583d25a1f22183f489d75f Mon Sep 17 00:00:00 2001 From: Paul Lam Date: Tue, 12 Sep 2023 11:15:45 +0900 Subject: [PATCH] init Github Actions for CI --- .github/workflows/backend-app.yml | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/backend-app.yml diff --git a/.github/workflows/backend-app.yml b/.github/workflows/backend-app.yml new file mode 100644 index 0000000..f5fe5b5 --- /dev/null +++ b/.github/workflows/backend-app.yml @@ -0,0 +1,36 @@ +name: Backend Python application + +on: [push] + +on: + push: + paths: + - 'backend/**' + +defaults: + run: + working-directory: backend + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.11"] + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade -r requirements/dev.txt + + - name: Test with pytest + run: | + pytest