diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml new file mode 100644 index 00000000..dfd8035d --- /dev/null +++ b/.github/workflows/unit_tests.yml @@ -0,0 +1,37 @@ +name: CI-UnitTests + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + # services: + # postgres: + # image: postgres:9.6 + # env: + # POSTGRES_DB: default + # POSTGRES_USER: postgres + # ports: + # - 5432:5432 + # options: >- + # --health-cmd pg_isready + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + + steps: + - name: Check out source repository + uses: actions/checkout@v3 + + - name: Set up Python environment + uses: actions/setup-python@v4 + with: + python-version: "3.10" + - name: Install dependencies + run: | + pip install --upgrade pip wheel setuptools + pip install django==3.2 + pip install dj-database-url + pip install psycopg2 + - name: Run tests + run: python -m runtests \ No newline at end of file