Files
weewx/.github/workflows/ci.yaml

51 lines
1.1 KiB
YAML

name: CI
on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- run: |
sudo apt-get update
sudo apt-get install --yes --no-install-recommends \
python3-configobj \
python3-cheetah \
python3-ephem \
python3-mock \
python3-mysqldb \
python3-serial \
python3-usb \
python3-pip \
mariadb-client \
mariadb-server \
rsync \
sqlite
sudo locale-gen de_DE.utf8
sudo update-locale
- uses: actions/checkout@v4
- name: pip install
run: |
python3 -m pip install --user "Pillow>=9.2"
python3 -m pip install --user mkdocs
python3 -m pip install --user mkdocs-material
- name: Setup tests
run: |
sudo make test-setup-ci
- name: Launch tests
run: |
make test
- name: Archive test-results
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: test-results
path: build/test-results