Daily build #52
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Daily build | |
defaults: | |
run: | |
shell: bash -l {0} | |
on: | |
schedule: | |
- cron: "09 10 * * *" | |
jobs: | |
build: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: mamba-org/setup-micromamba@v1 | |
# - uses: mamba-org/provision-with-micromamba@v15 | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
with: | |
micromamba-version: '1.4.5-0' | |
environment-name: foo | |
create-args: nctoolkit cmocean cartopy pandoc python=3.11 rpy2 r-base r-tidyverse r-ggtext jupyter-book r-mapdata | |
init-shell: >- | |
bash | |
powershell | |
cache-environment: true | |
post-cleanup: 'all' | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: | | |
sudo apt-get install texlive | |
mamba install pandoc r-ggthemes r-ggridges r-maps r-plotrix r-arrow r-pyarrow r-cowplot -y | |
python -m pip install . | |
pip install PyPDF2 | |
pip install pyarrow | |
pip install rioxarray | |
pip install pytest | |
pip install textract | |
pip install pytest-cov | |
pip install coverage | |
- name: Test with pytest | |
shell: bash -l {0} | |
run: | | |
coverage run -m pytest tests/test*.py | |
coverage report | |
coverage xml | |
- name: Upload Coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |