diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..d8bda6f --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,29 @@ +# .github/workflows/ci.yml + +name: ci pipeline + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: set-up python 3.9 + uses: actions/setup-python@v4 + with: + python-version: 3.9 + + - name: install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + - name: run test file + run: | + pytest ./tests