-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split the testing and the deployment workflows
The deployment workflow still depends on the tests passing.
- Loading branch information
1 parent
123849e
commit 1cec8c5
Showing
2 changed files
with
37 additions
and
32 deletions.
There are no files selected for viewing
39 changes: 7 additions & 32 deletions
39
.github/workflows/test_and_deploy.yaml → .github/workflows/deploy.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Run Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ['3.9'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements_dev.txt | ||
python -m pip install openseespy | ||
python -m pip install -e . | ||
- name: flake8 | ||
run: flake8 src | ||
- name: Unit tests | ||
run: python -m pytest --doctest-modules src/osmg/ |