dropped compatibility with python3.12 as it conflicts with pandas1.5.… #104
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
| # This workflow will install Python dependencies and run tests on different python versions | |
| # more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - meteoswiss-dev | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11'] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Display Python version | |
| run: python -c "import sys; print(sys.version)" | |
| # - name: Cache PIP and Poetry | |
| # uses: actions/cache@v2.1.6 | |
| # with: | |
| # path: | | |
| # ~/.cache/pip/ | |
| # ~/.cache/pypoetry/ | |
| # key: pip&poetry-${{ runner.os }}-${{ hashFiles('pyproject.toml') }} | |
| - name: Install poetry | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install poetry | |
| - name: Install package | |
| run: poetry install --only main | |
| - name: Display installed packages | |
| run: | | |
| poetry env list | |
| poetry show | |
| - name: Run tests | |
| run: poetry run python -m unittest discover tests/ |