Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI items #97

Merged
merged 3 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
python3-wheel
python3-libvirt-python
python3-netifaces
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Mark directory as safe for Git
run: git config --global --add safe.directory /__w/koan/koan
- name: Install towncrier
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/increase-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
name: "Create Pull Request"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build version
run: echo "new_version=${{ inputs.nextVersionMajor }}.${{ inputs.nextVersionMinor }}.${{ inputs.nextVersionPatch }}" >> $GITHUB_ENV
- name: Replace version in koan/__init__.py
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
build-rockylinux-rpms:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build a RockyLinux 8 Package
shell: 'script -q -e -c "bash {0}"'
run: |
Expand All @@ -28,7 +28,7 @@ jobs:
build-fedora-rpms:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build a Fedora Package
shell: 'script -q -e -c "bash {0}"'
run: |
Expand All @@ -42,7 +42,7 @@ jobs:
build-opensuse-leap-rpms:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install System dependencies
run: sudo apt-get install -y rename
- name: Build a openSUSE Leap 15.3 Package
Expand All @@ -61,7 +61,7 @@ jobs:
build-opensuse-tumbleweed-rpms:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install System dependencies
run: sudo apt-get install -y rename
- name: Build a openSUSE Tumbleweed Package
Expand All @@ -80,7 +80,7 @@ jobs:
build-debian-debs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build a Debian 10 Package
shell: 'script -q -e -c "bash {0}"'
run: |
Expand Down Expand Up @@ -113,11 +113,11 @@ jobs:
python3-Sphinx
python3-netifaces
tree
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Mark directory as safe for Git
run: git config --global --add safe.directory /__w/koan/koan
- name: Install dependencies
run: pip3 install .
run: pip3 install --break-system-packages .
- name: Build a binary wheel and a source tarball
run: make release
- name: Show tree
Expand All @@ -141,7 +141,7 @@ jobs:
build-wheel
]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
name: Download all built artifacts
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: Build and publish Python distributions to TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install package deps
run: >-
sudo apt-get install -y
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: pyflakes formatter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install deps
run: sudo apt-get install -y python3-pyflakes
- name: Run pyflakes
Expand All @@ -22,7 +22,7 @@ jobs:
name: black formatter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
options: "--check --safe --verbose"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
steps:
- name: Install pre reqs
run: zypper -n in git tar
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install package deps
run: zypper -n in --no-recommends python3-devel python3-wheel python3-pip python3-libvirt-python python3-codecov gcc make
- name: Install dependencies
run: pip3 install .[lint,test]
run: pip3 install --break-system-packages .[lint,test]
- name: Run tests
run: pytest --cov=./koan
- name: Upload report to codecov
Expand Down
9 changes: 9 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,18 @@
# Required
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.11"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

# Optionally build your docs in additional formats such as PDF and ePub
formats: all

python:
install:
- requirements: docs/requirements.rtd.txt
1 change: 1 addition & 0 deletions docs/requirements.rtd.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sphinx_rtd_theme==1.0.0
Loading