-
-
Notifications
You must be signed in to change notification settings - Fork 71
42 lines (38 loc) · 1.05 KB
/
portr-admin.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: Portr admin
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
env:
DOMAIN: localhost:8000
GITHUB_APP_CLIENT_ID: ""
GITHUB_APP_CLIENT_SECRET: ""
GITHUB_WEBHOOK_SECRET: ""
SERVER_URL: localhost:8000
SSH_URL: localhost:2222
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./admin
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
export PATH=".venv/bin:$PATH"
python3 -m venv .venv
. .venv/bin/activate
sed '/-e/d' requirements.lock > requirements.txt && python -m pip install --no-cache-dir -r requirements.txt
sed '/-e/d' requirements-dev.lock > requirements-dev.txt && python -m pip install --no-cache-dir -r requirements-dev.txt
- name: Test with pytest
run: |
pytest