lock pypi publish action version (#14) #46
Workflow file for this run
This file contains 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@v2 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
- 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.7' | |
- '3.8' | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
os: | |
- ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
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 |