-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added github workflow for continuous integration
- Loading branch information
Showing
1 changed file
with
38 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,38 @@ | ||
# This is a workflow for running Continuous Integration (CI) | ||
name: Continuous-Integration | ||
|
||
on: | ||
# Permits manual workflow dispatch | ||
workflow_dispatch: | ||
|
||
# Triggers the workflow on push events on the main branch | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checks-out your repository, so your job can access it | ||
- uses: actions/checkout@v3 | ||
|
||
# Setup a cached Python environment | ||
- name: Setup Python Environment | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.8' | ||
architecture: 'x64' | ||
cache: 'pip' | ||
cache-dependency-path: 'requirements.txt' | ||
|
||
# Install PIP development dependencies | ||
- name: Install PIP dependencies | ||
run: | | ||
pip install -r requirements.txt | ||
pip install pytest | ||
# Run tests | ||
- name: Run Tests | ||
run: | | ||
pytest |