Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeName0 committed Nov 1, 2023
1 parent 5802323 commit 6d391da
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Django # workflow name

on:
push:
branches: # similar to "only" in GitLab
- main

jobs:
build:
runs-on: ubuntu-20.04 # similar to "image" in GitLab
steps:
- uses: actions/checkout@v2

- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.6'

- run: |
pip3 install --upgrade virtualenv
virtualenv env
source env/bin/activate
pip install -r requirements.txt
python manage.py check
test:
runs-on: ubuntu-20.04
needs: build
steps:
- uses: actions/checkout@v2

- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.6'

- run: |
pip3 install --upgrade virtualenv
virtualenv env
source env/bin/activate
pip install -r requirements.txt
python manage.py test taskManager
integration:
runs-on: ubuntu-20.04
needs: test
steps:
- run: echo "This is an integration step"
- run: exit 1
continue-on-error: true

prod:
runs-on: ubuntu-20.04
needs: integration
steps:
- run: echo "This is a deploy step."

0 comments on commit 6d391da

Please sign in to comment.