Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JNatael committed Feb 2, 2021
2 parents 65a2cae + 979d463 commit c791dc1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
32 changes: 28 additions & 4 deletions .github/workflows/publish_on_release_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,43 @@ on:
jobs:
# This workflow contains a single job called "build"
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to TestPyPI and, when tagged, PyPI
name: Build and publish Python 🐍 distribution 📦 to PyPI
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6] #, 3.7, 3.8, 3.9] # These are redundant and cause errors on upload since it's a version-independent build

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Set up Python 3.6
uses: actions/setup-python@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.6
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest setuptools wheel twine
# Don't think I actually need to install dependencies, and opencv would be quite large anyway
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings.
flake8 . --count --exit-zero --statistics
# Included for the day when tests are added to the project
# - name: Test with pytest
# run: |
# pytest

- name: Install pypa/build
run: >-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_to_testpypi_on_setup_change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
# This workflow contains a single job called "build"
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to TestPyPI and, when tagged, PyPI
name: Build and publish Python 🐍 distribution 📦 to TestPyPI
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit c791dc1

Please sign in to comment.