-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (33 loc) · 926 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "${{ github.workspace }}/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
poetry install
- name: Copy settings.py
run: |
cp course-management/course/settings.py.example course-management/course/settings.py
- name: Run migrations
run: |
poetry run python course-management/manage.py migrate
- name: Run tests
run: |
poetry run python course-management/manage.py test