bump version to 1.1.1 #112
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: Lint and Test | |
on: [push,pull_request] | |
jobs: | |
precheck: | |
runs-on: ubuntu-20.04 | |
outputs: | |
should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
steps: | |
- id: skip_check | |
uses: fkirc/skip-duplicate-actions@master | |
with: | |
# skip concurrent jobs if they are on the same thing | |
concurrent_skipping: 'same_content' | |
# never skip PR + manual/scheduled runs | |
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]' | |
flake8: | |
needs: precheck | |
if: ${{ needs.precheck.outputs.should_skip != 'true' }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: ['3.9', '3.10', '3.11'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Run flake8 | |
uses: suo/flake8-github-action@releases/v1 | |
with: | |
checkName: 'flake8' # NOTE: this needs to be the same as the job name | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
mypy: | |
needs: precheck | |
if: ${{ needs.precheck.outputs.should_skip != 'true' }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: ['3.9', '3.10', '3.11'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install mypy lxml-stubs types-requests | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Run mypy | |
run: | | |
mypy -p callsignlookuptools | |
pytest: | |
needs: precheck | |
if: ${{ needs.precheck.outputs.should_skip != 'true' }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: ['3.9', '3.10', '3.11'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Run pytest | |
run: | | |
python -m pytest |