Add .snyk file with python 3.10 version specified #75
Workflow file for this run
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: Build | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| lint: | |
| if: github.event_name == 'push' && !startsWith(github.event.ref, 'refs/tags') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install Flake8 & mypy | |
| run: >- | |
| python -m pip install --upgrade . mypy; | |
| - name: Check Flake8 Linting Errors | |
| run: >- | |
| flake8 | |
| - name: Check mypy Linting Errors | |
| run: >- | |
| mypy --ignore-missing-imports -p flake8_intsights | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| needs: lint | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: | |
| - '3.10' | |
| - '3.11' | |
| - '3.12' | |
| os: | |
| - ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Python Dependencies | |
| run: >- | |
| python -m pip install --upgrade -r requirements.txt; | |
| python -m pip install --upgrade pytest; | |
| - name: Test module | |
| run: >- | |
| pytest |