-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
- Loading branch information
Showing
4 changed files
with
785 additions
and
3 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,51 @@ | ||
name: Tests & Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint: | ||
name: Run Format & Linting Checks | ||
container: | ||
image: fedorapython/fedora-python-tox | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Mark the directory as safe for git | ||
run: git config --global --add safe.directory $PWD | ||
|
||
- name: Install RPM dependencies | ||
run: | | ||
dnf install -y krb5-devel libpq-devel gettext python-tox poetry | ||
- name: Run tests | ||
run: tox -e ${{ matrix.tox_env }} | ||
strategy: | ||
matrix: | ||
tox_env: | ||
- lint | ||
- format | ||
runs-on: ubuntu-latest | ||
|
||
unit_tests: | ||
name: Run the Unit Tests | ||
container: fedorapython/fedora-python-tox:latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Mark the directory as safe for git | ||
run: git config --global --add safe.directory $PWD | ||
- name: Install RPM dependencies | ||
run: | | ||
dnf install -y krb5-devel libpq-devel gettext python-tox poetry | ||
- name: Run tests | ||
run: tox -e ${{ matrix.tox_env }} | ||
strategy: | ||
matrix: | ||
tox_env: | ||
- py39 | ||
- py310 | ||
- py311 | ||
runs-on: ubuntu-latest |
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
Oops, something went wrong.