Skip to content

Commit

Permalink
combine actions
Browse files Browse the repository at this point in the history
  • Loading branch information
aottr committed Apr 12, 2024
1 parent 9f48b31 commit b01133b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,48 @@ name: Docker Image CI
on:
push:
branches:
- "main"
- '**'
pull_request:
branches: ["main"]
branches:
- '**'

env:
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}

jobs:

test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: 3.12

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: |
poetry install
- name: Run tests
env:
SECRET_KEY: 'asdf'
DEBUG: 'True'
ALLOWED_HOSTS: 'localhost'
run: |
poetry run python manage.py test
build:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
permissions:
contents: read
packages: write # might need to use PAT instead
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/django-tests.yml

This file was deleted.

0 comments on commit b01133b

Please sign in to comment.