Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/sam-bertin/maykin into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-bertin committed Mar 26, 2024
2 parents 671df1f + 2c00d9a commit d45f02b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Django CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.12]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Create config.ini
run: |
echo "[authentication]" > config.ini
echo "username=${{ secrets.USERNAME }}" >> config.ini
echo "password=${{ secrets.PASSWORD }}" >> config.ini
echo " " >> config.ini
echo "[urls]" >> config.ini
echo "city_url=${{ secrets.CITY_URL }}" >> config.ini
echo "hotel_url=${{ secrets.HOTEL_URL}}" >> config.ini
- 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 d45f02b

Please sign in to comment.