add py version to travis.yml #86
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: Continuous Integration | |
| on: push | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Run tests with pytest | |
| run: docker-compose run --rm tester | |
| - name: Stop containers | |
| if: always() | |
| run: docker-compose stop | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.12 | |
| - name: Install requirements | |
| run: | | |
| python -m venv .venv | |
| .venv/bin/pip install flake8 | |
| - name: Run linting | |
| run: .venv/bin/flake8 high_templar |