lat2db from PyPI #8
This file contains hidden or 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: lat2db from PyPI | |
| on: | |
| schedule: | |
| # ┌───────────── minute (0 - 59) | |
| # │ ┌───────────── hour (0 - 23) | |
| # │ │ ┌───────────── day of the month (1 - 31) | |
| # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | |
| # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | |
| # │ │ │ │ │ | |
| # │ │ │ │ │ | |
| # │ │ │ │ │ | |
| # * * * * * | |
| - cron: '30 5 * * 0' | |
| jobs: | |
| pypi: | |
| # Build and test only, use pre-generated SWIG wrappers, install from PyPI | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| # Checkout the repository contents | |
| - name: Checkout lat2db code | |
| uses: actions/checkout@v4 | |
| # Setup Python version | |
| - name: Setup Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.12 | |
| # Install dependencies | |
| - name: Install apt dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install python3-all-dev | |
| # Install Python dependencies | |
| - name: Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip wheel | |
| python -m pip install pytest pycodestyle | |
| - name: install | |
| run: | | |
| python -m pip install lat2db | |
| - name: test | |
| run: | | |
| # make sure to move out of the source directory | |
| cd /tmp | |
| python -m pytest -s /home/runner/work/hz-b/lat2db/tests |