better preserve METAR integer temperatures #1099
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"] | |
jobs: | |
build-and-deploy: | |
name: Python (${{ matrix.PYTHON_VERSION }}) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
PYTHON_VERSION: ["3.9", "3.10", "3.11"] | |
env: | |
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Add /etc/hosts entries | |
run: | | |
cat .github/workflows/etchosts.txt | sudo tee -a /etc/hosts | |
- name: Setup CI from ci-tooling | |
run: | | |
git clone --depth 1 https://github.com/akrherz/iem-database.git database | |
git clone --depth 1 https://github.com/akrherz/ci_tooling.git .ci_tooling | |
. .ci_tooling/postgres.sh | |
. .ci_tooling/miniconda.sh | |
. .ci_tooling/memcached.sh | |
pip install requests-mock | |
python -m pip install . --upgrade --no-deps | |
export PATH="/usr/lib/postgresql/14/bin:$PATH" | |
cd database; sh bootstrap.sh | |
python schema_manager.py | |
python store_test_data.py | |
psql -f data/postgis/cwsu.db -U mesonet postgis | |
cd .. | |
python util/insert_testing_data.py | |
coverage run --source=pyiem setup.py test --addopts "--mpl --mpl-results-path=mplresults" | |
coverage xml | |
conda install sphinx | |
cd docs | |
make html | |
touch build/html/.nojekyll | |
cd .. | |
- name: Code coverage | |
if: ${{ matrix.PYTHON_VERSION == '3.10' }} | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: coverage.xml | |
- name: Build and Deploy | |
if: ${{ matrix.PYTHON_VERSION == '3.10' }} | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
BASE_BRANCH: main # The branch the action should deploy from. | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: docs/build/html # The folder the action should deploy. This example folder is generated by Sphinx |