-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
41 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,36 @@ | ||
# This configuration does the following: | ||
|
||
# It triggers the CI pipeline when code is pushed to the master branch. | ||
# It sets up a Python environment, installs project dependencies, and runs pytest. | ||
# Test results are uploaded as artifacts for later examination. | ||
|
||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
# - master | ||
- test_sanity | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.10 | ||
|
||
- name: Install Dependencies | ||
run: pip install -r requirements.txt | ||
|
||
- name: Run Tests with pytest | ||
run: pytest | ||
|
||
- name: Upload Test Artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: test-results | ||
path: test-reports |
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 |
---|---|---|
|
@@ -76,3 +76,6 @@ ssh_error_log.txt | |
HBR_demo/* | ||
dist/pcntoolkit-0.27-py3.11.egg | ||
|
||
# Overrule for github folder | ||
!.github | ||
|
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,2 @@ | ||
def test_sanity(): | ||
assert 1 + 1 == 2 |