mirror of
https://github.com/weewx/weewx.git
synced 2026-04-17 08:06:58 -04:00
55 lines
1.2 KiB
YAML
55 lines
1.2 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
|
|
sudo locale-gen de_DE.UTF-8
|
|
sudo locale-gen en_US.UTF-8
|
|
sudo update-locale
|
|
|
|
- uses: actions/checkout@v5
|
|
|
|
- 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
|
|
python3 -m pip install --user pytest
|
|
|
|
- name: Setup tests
|
|
run: |
|
|
sudo make test-setup-ci
|
|
|
|
- name: Launch tests
|
|
run: |
|
|
export LANG=en_US.UTF-8
|
|
make test
|
|
|
|
- name: Archive test-results
|
|
if: success() || failure()
|
|
uses: actions/upload-artifact@v6
|
|
with:
|
|
name: test-results
|
|
path: |
|
|
build/test-results
|
|
/var/tmp/weewx-test/weewx-ci.log
|