Free and open source ticket system written in python

combine actions

+32 -40
-38
.github/workflows/django-tests.yml
··· 1 - name: Python Tests 2 - 3 - on: 4 - push: 5 - branches: 6 - - '**' 7 - pull_request: 8 - branches: 9 - - '**' 10 - 11 - jobs: 12 - test: 13 - 14 - runs-on: ubuntu-latest 15 - 16 - steps: 17 - - uses: actions/checkout@v2 18 - 19 - - name: Set up Python 3.12 20 - uses: actions/setup-python@v2 21 - with: 22 - python-version: 3.12 23 - 24 - - name: Install Poetry 25 - run: | 26 - curl -sSL https://install.python-poetry.org | python3 - 27 - 28 - - name: Install dependencies 29 - run: | 30 - poetry install 31 - 32 - - name: Run tests 33 - env: 34 - SECRET_KEY: 'asdf' 35 - DEBUG: 'True' 36 - ALLOWED_HOSTS: 'localhost' 37 - run: | 38 - poetry run python manage.py test
+32 -2
.github/workflows/docker-image.yml .github/workflows/build-and-test.yml
··· 3 3 on: 4 4 push: 5 5 branches: 6 - - "main" 6 + - '**' 7 7 pull_request: 8 - branches: ["main"] 8 + branches: 9 + - '**' 9 10 10 11 env: 11 12 REGISTRY: ghcr.io ··· 13 14 IMAGE_NAME: ${{ github.repository }} 14 15 15 16 jobs: 17 + 18 + test: 19 + runs-on: ubuntu-latest 20 + 21 + steps: 22 + - uses: actions/checkout@v4 23 + 24 + - name: Set up Python 3.12 25 + uses: actions/setup-python@v2 26 + with: 27 + python-version: 3.12 28 + 29 + - name: Install Poetry 30 + run: | 31 + curl -sSL https://install.python-poetry.org | python3 - 32 + 33 + - name: Install dependencies 34 + run: | 35 + poetry install 36 + 37 + - name: Run tests 38 + env: 39 + SECRET_KEY: 'asdf' 40 + DEBUG: 'True' 41 + ALLOWED_HOSTS: 'localhost' 42 + run: | 43 + poetry run python manage.py test 44 + 16 45 build: 17 46 runs-on: ubuntu-latest 47 + if: github.event_name == 'push' && github.ref == 'refs/heads/main' 18 48 permissions: 19 49 contents: read 20 50 packages: write # might need to use PAT instead