[pre-commit.ci] pre-commit autoupdate #144
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: openseries testing | |
on: | |
# membuat unittesting untuk mengecek dari pull request dan push | |
# branch dari yang akan di cek adalah main dan develop-library | |
pull_request: | |
branches: [main, develop-library] | |
push: | |
branches: [main, develop-library] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# operasi sistem yang dijadikan sebagai environment dari testnya | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
steps: | |
# check out kode dimana adalah git action | |
# mengecek kode daripada project | |
- name: checkout kode | |
uses: actions/checkout@v4 | |
# memanggil environment dari python | |
- name: setting python | |
uses: actions/setup-python@v4 | |
# install requirement yang sudah disedikan dari project | |
- name: install requirement | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r requirements.txt | |
python -m pip install -r dev-requirements.txt | |
# testing kode dengan pytest | |
- name: testing kode dengan pytest | |
run: | | |
pytest testing/main_test.py --verbose |