Skip to content

Commit

Permalink
Configura Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
matheuspdf committed Mar 11, 2024
1 parent f2985f0 commit 04886b7
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/django_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Python CI

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.10]

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Copy environment file
run: cp contrib/env-sample .env

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: python manage.py test

0 comments on commit 04886b7

Please sign in to comment.