chore(deps): update actions/checkout action to v6 #2580
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: mote | |
| on: [push, pull_request, workflow_dispatch] | |
| jobs: | |
| ci-basic: | |
| strategy: | |
| fail-fast: false | |
| runs-on: ubuntu-latest | |
| container: fedorapython/fedora-python-tox:latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install the base dependencies | |
| run: | | |
| python3 -m pip install --upgrade poetry tox | |
| - name: Check the correctness of the project config | |
| run: | | |
| poetry check | |
| - name: Check the quality of the code | |
| run: | | |
| tox -e cleaning | |
| ci-tests: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| tox-env: ["py310", "py311", "py312", "cleaning"] | |
| runs-on: ubuntu-latest | |
| container: fedorapython/fedora-python-tox:latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install the base dependencies | |
| run: | | |
| python3 -m pip install --upgrade poetry tox | |
| - name: Install Redis | |
| run: | | |
| sudo dnf install redis -y | |
| - name: Set up user for running the testcases | |
| run: | | |
| useradd testuser | |
| chown -R testuser . | |
| - name: Execute tox | |
| env: | |
| FLASK_CACHE_REDIS_URL: "redis://localhost" | |
| FLASK_CACHE_TYPE: "RedisCache" | |
| run: | | |
| su testuser -c "tox -e ${{ matrix.tox-env }}" |