-
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.46 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Code Style
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
name: ${{ matrix.PYVER }}
strategy:
fail-fast: false
matrix:
include:
- PYVER: current_arch
SKIP_SHELLCHECK: 0
SKIP_MYPY: 0
SKIP_VULTURE: 0
- PYVER: python310_ubuntu_2204
SKIP_SHELLCHECK: 1
SKIP_MYPY: 1
SKIP_VULTURE: 1
env:
PYVER: ${{ matrix.PYVER }}
SKIP_SHELLCHECK: ${{ matrix.SKIP_SHELLCHECK }}
SKIP_MYPY: ${{ matrix.SKIP_MYPY }}
SKIP_VULTURE: ${{ matrix.SKIP_VULTURE }}
steps:
- uses: actions/checkout@v2
- name: get Themix GUI
run: git clone https://github.com/themix-project/oomox.git ./themix_gui/
- name: Set env
run: echo "THEMIX_GUI_PATH=./themix_gui/" >> $GITHUB_ENV
- name: move dockerfiles into build context
run: mv ./themix_gui/dockerfiles/* ./
- name: switch base docker image
run: sed -i -e 's|FROM archlinux:base-devel|FROM actionless/pikaur|' Dockerfile_${PYVER}
- name: build docker image
run: docker build . -f Dockerfile_${PYVER} -t oomox
- name: run ci in docker
run: docker run
-e SKIP_SHELLCHECK=${SKIP_SHELLCHECK}
-e SKIP_MYPY=${SKIP_MYPY}
-e SKIP_VULTURE=${SKIP_VULTURE}
-e THEMIX_GUI_PATH=${THEMIX_GUI_PATH}
oomox:latest
./maintenance_scripts/lint.sh