tangled
alpha
login
or
join now
aottr.dev
/
paw
0
fork
atom
Free and open source ticket system written in python
0
fork
atom
overview
issues
pulls
pipelines
combine actions
aottr.dev
2 years ago
b01133b3
9f48b316
+32
-40
2 changed files
expand all
collapse all
unified
split
.github
workflows
build-and-test.yml
django-tests.yml
-38
.github/workflows/django-tests.yml
···
1
1
-
name: Python Tests
2
2
-
3
3
-
on:
4
4
-
push:
5
5
-
branches:
6
6
-
- '**'
7
7
-
pull_request:
8
8
-
branches:
9
9
-
- '**'
10
10
-
11
11
-
jobs:
12
12
-
test:
13
13
-
14
14
-
runs-on: ubuntu-latest
15
15
-
16
16
-
steps:
17
17
-
- uses: actions/checkout@v2
18
18
-
19
19
-
- name: Set up Python 3.12
20
20
-
uses: actions/setup-python@v2
21
21
-
with:
22
22
-
python-version: 3.12
23
23
-
24
24
-
- name: Install Poetry
25
25
-
run: |
26
26
-
curl -sSL https://install.python-poetry.org | python3 -
27
27
-
28
28
-
- name: Install dependencies
29
29
-
run: |
30
30
-
poetry install
31
31
-
32
32
-
- name: Run tests
33
33
-
env:
34
34
-
SECRET_KEY: 'asdf'
35
35
-
DEBUG: 'True'
36
36
-
ALLOWED_HOSTS: 'localhost'
37
37
-
run: |
38
38
-
poetry run python manage.py test
+32
-2
.github/workflows/docker-image.yml
.github/workflows/build-and-test.yml
···
3
3
on:
4
4
push:
5
5
branches:
6
6
-
- "main"
6
6
+
- '**'
7
7
pull_request:
8
8
-
branches: ["main"]
8
8
+
branches:
9
9
+
- '**'
9
10
10
11
env:
11
12
REGISTRY: ghcr.io
···
13
14
IMAGE_NAME: ${{ github.repository }}
14
15
15
16
jobs:
17
17
+
18
18
+
test:
19
19
+
runs-on: ubuntu-latest
20
20
+
21
21
+
steps:
22
22
+
- uses: actions/checkout@v4
23
23
+
24
24
+
- name: Set up Python 3.12
25
25
+
uses: actions/setup-python@v2
26
26
+
with:
27
27
+
python-version: 3.12
28
28
+
29
29
+
- name: Install Poetry
30
30
+
run: |
31
31
+
curl -sSL https://install.python-poetry.org | python3 -
32
32
+
33
33
+
- name: Install dependencies
34
34
+
run: |
35
35
+
poetry install
36
36
+
37
37
+
- name: Run tests
38
38
+
env:
39
39
+
SECRET_KEY: 'asdf'
40
40
+
DEBUG: 'True'
41
41
+
ALLOWED_HOSTS: 'localhost'
42
42
+
run: |
43
43
+
poetry run python manage.py test
44
44
+
16
45
build:
17
46
runs-on: ubuntu-latest
47
47
+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
18
48
permissions:
19
49
contents: read
20
50
packages: write # might need to use PAT instead