Skip to content

Merge pull request #11 from SpeedyGoneZales/master #17

Merge pull request #11 from SpeedyGoneZales/master

Merge pull request #11 from SpeedyGoneZales/master #17

Workflow file for this run

---
name: Python
on: push
jobs:
build-n-test:
name: Build and test Python code
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: flake8 Lint
uses: py-actions/flake8@v2
with:
max-line-length: "120"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Install Requirements (for Mypy analysis)
run: pip install -r requirements.txt
- name: Install Mypy
run: pip install mypy
- name: Mypy
run: mypy
- name: Save packages as artifacts
uses: actions/upload-artifact@v2
with:
name: packages
path: dist/