-
-
Notifications
You must be signed in to change notification settings - Fork 99
43 lines (35 loc) · 1.04 KB
/
pythonapp.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
name: Python Testing
on:
pull_request:
branches: [main]
jobs:
build:
# menjalankan testing dengan 3 os yaitu
# linux (ubuntu), windows, dan macOS
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
# untuk menggunakan arsitektur pada arm dan xx86
arm: [x86, arm64]
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setting python versi 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Cache pip dependecies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt')}}
- name: Install Dependencies
run: |
echo "Installing required dependencies"
python -m pip install --upgrade pip
pip install -r requirements.txt -r dev-requirements.txt
- name: Python Linting
run: |
echo "Running flake8 tests"
flake8 .