-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore[ci]: Added Github action for regular testing package
* Added CI job for regular testing python-iniparse on latest Fedoras and CentOS 9 * Added script for installing required packages * Also dded configuration for dependabot
- Loading branch information
1 parent
0f3da0a
commit ff58e50
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
target-branch: "main" | ||
commit-message: | ||
prefix: "ci" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: pytest | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
schedule: | ||
# at 5:00 every 1st of the month | ||
- cron: 0 5 1 * * | ||
|
||
jobs: | ||
pytest: | ||
name: "pytest" | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- name: "CentOS Stream 9" | ||
image: "quay.io/centos/centos:stream9" | ||
pytest_args: '' | ||
- name: "Fedora latest" | ||
image: "fedora:latest" | ||
pytest_args: '' | ||
- name: "Fedora Rawhide" | ||
image: "fedora:rawhide" | ||
pytest_args: '' | ||
|
||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{ matrix.image }} | ||
|
||
steps: | ||
- name: "Checkout repository" | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Run container-pre-test.sh" | ||
run: | | ||
bash scripts/container-pre-test.sh | ||
- name: "Run pytest" | ||
env: | ||
PYTEST_ADDOPTS: "--color=yes --code-highlight=yes --showlocals" | ||
run: python3 -m pytest ${{ matrix.pytest_args }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
dnf install -y python3-setuptools python3-pip python3-devel | ||
dnf builddep -y python-iniparse.spec |