Giter Site home page Giter Site logo

allynt / django-singleton2 Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 80 KB

A Django Reusable App for singletons. Mostly written to understand how to create a Django Reusable Apps.

Home Page: https://django-singleton2.readthedocs.io/

License: MIT License

Python 95.60% HTML 4.40%
django poetry pytest python sphinx tox

django-singleton2's People

Contributors

allynt avatar

Watchers

 avatar  avatar

django-singleton2's Issues

Add testing artefacts to github actions

Something like this:

name: build
run-name: build (invoked by ${{ github.actor }})

on: [push, workflow_dispatch]

jobs:
  server-tests:
    runs-on: ubuntu-20.04
    timeout-minutes: 15
    continue-on-error: true
    services:
      db:
        image: kartoza/postgis:15
        env:
          POSTGRES_USER: user
          POSTGRES_PASS: pwd
          POSTGRES_DBNAME: db
          ALLOW_IP_RANGE: 0.0.0.0/0
        ports:
          - 5666:5432
    steps:
      - name: Checkout repository
        uses: actions/checkout@v3
      - name: setup Python and PDM
        uses: pdm-project/setup-pdm@v3
        with:
          python-version: 3.10.0
          enable-pep582: true
      - name: Install dependencies
        run: |
          sudo apt-get update
          sudo apt-get install -y postgresql-client python3-gdal
          pdm install --dev
      - name: Run server tests
        env:
          DJANGO_ENVIRONMENT: "ci"
          DJANGO_SETTINGS_MODULE: "config.settings"
          DATABASE_URL: "postgis://user:pwd@localhost:5666/db"
        run: |
          pdm run ./manage.py migrate --noinput
          pdm run test
      - name: Upload server test report
        uses: actions/upload-artifact@v3
        with:
          name: pytest-report
          path: |
            server/pytest-report.html
            server/output.json
            server/archive/*

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.