Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
durera committed Jun 2, 2024
1 parent a612954 commit cf33b05
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 24 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Build Documentation

on:
push:
branches:
- '**'
tags-ignore:
- '**'
branches: [ '**' ]
tags-ignore: [ '**' ]

jobs:
deploy-docs:
runs-on: ubuntu-latest
Expand All @@ -19,7 +19,7 @@ jobs:
- name: Deploy
uses: JamesIves/[email protected]
# if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master'
with:
branch: gh-pages
folder: site
13 changes: 5 additions & 8 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python package
name: Python Package

on:
push:
Expand All @@ -20,9 +17,9 @@ jobs:
- python-version: "3.9"
primary-config: "true"
- python-version: "3.10"
primary-config: "true"
- python-version: "3.11"
primary-config: "false"
- python-version: "3.11"
primary-config: "true"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -39,8 +36,8 @@ jobs:
flake8 src --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 src --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
# if: github.ref == 'refs/heads/master'
- name: Test with pytest (only on Python 3.11 to avoid concurrency issues)
if: github.ref == 'refs/heads/actions' and matrix.primary-config == 'true'
env:
ONE_JOB_ONLY_TESTS: ${{ matrix.primary-config }}
WIOTP_API_KEY: ${{ secrets.WIOTP_API_KEY }}
Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
release:
types: [published]
types: [ published ]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand Down

0 comments on commit cf33b05

Please sign in to comment.