-
-
Notifications
You must be signed in to change notification settings - Fork 68
42 lines (33 loc) · 940 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: Code Style
on:
push:
branches: [ master, mypy ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-22.04
name: ${{ matrix.PYVER }}
strategy:
fail-fast: false
matrix:
include:
- PYVER: current_arch
CI_MAKE_TARGET: lint
- PYVER: python310_ubuntu_2204
CI_MAKE_TARGET: lint_ubuntu_310
env:
PYVER: ${{ matrix.PYVER }}
CI_MAKE_TARGET: ${{ matrix.CI_MAKE_TARGET }}
steps:
- uses: actions/checkout@v2
- name: move dockerfiles into build context
run: mv ./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
oomox:latest
make ${CI_MAKE_TARGET}