Refactor tests for poetry #15
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- master | |
- dev | |
pull_request: ~ | |
env: | |
DEFAULT_PYTHON: "3.12" | |
jobs: | |
ci: | |
name: CI | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📥 Checkout the repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Install poetry | |
run: pip install poetry==1.8.2 | |
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ env.DEFAULT_PYTHON }} | |
cache: "poetry" | |
- name: Install dependencies | |
run: poetry install | |
- name: 🧹 Lint files with pylint | |
run: poetry run pylint pyefergy | |
- name: 🖤 Format with black | |
run: poetry run black . --check | |
- name: Check with ruff | |
run: poetry run ruff check | |
- name: 🔍 Inspect with mypy | |
run: poetry run mypy pyefergy | |
- name: Test with pytest | |
run: poetry run pytest | |
- name: Generate Report | |
run: | | |
pip install tabulate | |
pip install coverage | |
pip install hypothesis | |
pip install aiohttp | |
pip install iso4217 | |
pip install pytz | |
coverage run -m unittest | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
verbose: true |