Skip to content

CCS-401: Migration time maps for co2 total mass #1782

CCS-401: Migration time maps for co2 total mass

CCS-401: Migration time maps for co2 total mass #1782

Workflow file for this run

name: ccs-scripts
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
schedule:
# Run nightly to check that tests are working with latest dependencies
- cron: "30 3 * * *"
env:
MPLBACKEND: Agg
jobs:
ccs-scripts:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout commit locally
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install libegl1
run: |
sudo apt-get update
sudo apt-get install -y libegl1
- name: Install ccs-scripts with dependencies
if: ${{ always() }}
run: |
pip install --upgrade pip
pip install .[tests,docs]
- name: List all installed packages
run: pip freeze
- name: Lint with isort
if: ${{ always() }}
run: isort --check-only --profile black src tests
- name: Lint with black
if: ${{ always() }}
run: black --check src tests
- name: Lint with flake8
if: ${{ always() }}
run: flake8 src tests
- name: Check typing with mypy
if: ${{ always() }}
run: mypy src
- name: Run tests
if: ${{ always() }}
run: |
pytest -n auto tests --log-level=INFO
# Check that repository is untainted by test code:
git status --porcelain
test -z "$(git status --porcelain)"
- name: Syntax check documentation
if: ${{ always() }}
run: rstcheck -r docs