-
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.
- Loading branch information
1 parent
7bfcf93
commit 9d6cbb0
Showing
1 changed file
with
15 additions
and
4 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 |
---|---|---|
@@ -1,28 +1,39 @@ | ||
name: Test the Countoscope | ||
on: | ||
# Run the workflow on pushes to the 'develop' branch and pull requests targeting 'develop' | ||
push: | ||
branches: [ develop ] | ||
pull_request: | ||
branches: [ develop ] | ||
|
||
jobs: | ||
# Specify the OS environment (Ubuntu) for the GitHub runner | ||
build: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Step 1: Checkout the repository, including submodules and any LFS-managed files | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true # Initialize and update submodules | ||
submodules: true | ||
lfs: true | ||
|
||
# Step 2: Set up Python 3.10.7 | ||
- name: Set up Python 3.10.7 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10.7" | ||
|
||
# Step 3: Update pip, Install dependencies, Install the Countoscope | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install . | ||
pip install . | ||
# Step 4: Run tests using pytest | ||
- name: Test with pytest | ||
run: | | ||
cd tests | ||
cd tests | ||
pip install -r requirements.txt | ||
pytest . |