Skip to content

Commit 8d1fef5

Browse files
authored
Merge pull request #2 from numberly/feat/github_actions
Feat/GitHub actions
2 parents 6f469b3 + 796f1b8 commit 8d1fef5

File tree

4 files changed

+49
-1
lines changed

4 files changed

+49
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Issue assignment
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
auto-assign:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: 'Auto-assign issue'
12+
uses: pozil/[email protected]
13+
with:
14+
assignees: thepetk,Solvik
15+
numOfAssignee: 1

.github/workflows/make-qa.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: QA
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Set up Python 3.9
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: "3.9"
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -r dev-requirements.txt
24+
25+
- name: Run qa
26+
run: make qa
27+
28+
- name: Run mypy
29+
run: make mypy

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ WORKDIR /usr/src/app
55
COPY requirements.txt requirements.txt
66
RUN pip3 install -r requirements.txt
77

8+
RUN groupadd --gid 1000 appuser \
9+
&& useradd --uid 1000 --gid appuser --shell /bin/bash --create-home appuser
10+
11+
USER appuser
812
COPY gitlab2sentry/ gitlab2sentry/
913
COPY run.py run.py
1014
COPY g2s.yaml g2s.yaml

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ You can install all requirements for this project with
2121
```
2222
python3 -m venv venv
2323
pip3 install -r requirements.txt
24-
source venv/bin/ac
24+
source venv/bin/activate
2525
```
2626

2727
After the installation of all requirements you have to:

0 commit comments

Comments
 (0)