-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from fedora-infra/workflow
Add CI workflow for the project
- Loading branch information
Showing
3 changed files
with
61 additions
and
1 deletion.
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,50 @@ | ||
--- | ||
name: firmitas | ||
on: [push, pull_request, workflow_dispatch] | ||
jobs: | ||
ci-basic: | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
container: fedorapython/fedora-python-tox:latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install the base dependencies | ||
run: | | ||
python3 -m pip install --upgrade poetry tox | ||
- name: Check the correctness of the project config | ||
run: | | ||
poetry check | ||
- name: Check the quality of the code | ||
run: | | ||
tox -e cleaning | ||
ci-tests: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
tox-env: ["py38", "py39", "py310", "py311", "py312"] | ||
runs-on: ubuntu-latest | ||
container: fedorapython/fedora-python-tox:latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install the base dependencies | ||
run: | | ||
python3 -m pip install --upgrade tox | ||
- name: Set up user for running the testcases | ||
run: | | ||
useradd testrunner | ||
chown -R testrunner . | ||
- name: Execute tox | ||
run: | | ||
su testrunner -c "tox -e ${{ matrix.tox-env }}" | ||
env: | ||
FIRMITAS_TEST_USERNAME: "${{ secrets.FIRMITAS_TEST_USERNAME }}" | ||
FIRMITAS_TEST_PASSWORD: "${{ secrets.FIRMITAS_TEST_PASSWORD }}" | ||
FIRMITAS_TEST_REPONAME: "${{ secrets.FIRMITAS_TEST_REPONAME }}" |
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
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