Skip to content

code refactor

code refactor #84

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Build
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo make init
- name: Test with pytest
run: |
make test
- name: upload code coverage
uses: actions/upload-artifact@v4
with:
name: code coverage
path: ./tests/lcov/html/*
if-no-files-found: error
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# - name: create binary
# run: |
# env
# sudo make init
# pip install pyinstaller
# cd mm
# pyinstaller -F --paths=../venv/Lib/site-packages diagram.py
# - name: upload binary
# uses: actions/upload-artifact@v4
# with:
# name: linux binary
# path: ./dist
# if-no-files-found: error