fix yaml usage, pandas datetime stamp and LPJmL execution/submission #8
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: check | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel | |
pip install . | |
pip install -e .[dev] | |
- name: Run tests | |
run: | | |
pytest | |
- name: Check code formatting with Black | |
run: | | |
black --check . | |
- name: Lint code with Flake8 | |
run: | | |
flake8 . |