update #95
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: Minimint | |
# Run this workflow every time a new commit pushed to your repository | |
on: push | |
jobs: | |
tester: | |
name: 'Test the code' | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.10'] | |
#os: ['ubuntu-latest', 'windows-latest'] | |
os: ['windows-latest'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Python setup | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: 'x64' | |
- name: Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install pytest | |
pip install pylint | |
pip install pytest-cov | |
pip install coveralls | |
pip install . | |
- name: Pylint | |
if: ${{ ( matrix.os != 'windows-latest' ) }} | |
run: pylint -E --disable=E1101 py/minimint/*py | |
- name: Test | |
run: pytest --cov=minimint -s | |
- name: Coveralls | |
if: ${{ success() && (matrix.os != 'windows-latest') }} | |
run: coveralls --service=github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |