-
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
Richard Liang
committed
Nov 20, 2024
1 parent
584a132
commit ef9b8b6
Showing
4 changed files
with
27 additions
and
152 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
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 |
---|---|---|
|
@@ -3,33 +3,29 @@ name: Automated Tests | |
on: ["push"] | ||
|
||
jobs: | ||
build: | ||
runs-on: [self-hosted] | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout code from repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Log into GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build devcontainer and run tests | ||
uses: devcontainers/[email protected] | ||
with: | ||
submodules: 'true' | ||
- name: Setup pipenv | ||
run: | | ||
pip install --upgrade pip | ||
python -m venv venv | ||
./venv/bin/pip install --upgrade pip | ||
./venv/bin/pip install pipenv | ||
- name: Install dependencies | ||
run: | | ||
PIPENV_VENV_IN_PROJECT=1 ./venv/bin/pipenv sync -d | ||
# - name: Dummy settings file | ||
# run: cp phylowatch/settings_default.py phylowatch/settings.py | ||
- name: Static checks | ||
run: | | ||
./.venv/bin/flake8 phylowatch --show-source --statistics | ||
./.venv/bin/flake8 tests --show-source --statistics | ||
continue-on-error: true | ||
- name: Unit tests | ||
run: ./.venv/bin/pytest --cov-config=.coveragerc --cov --cov-report=xml:coverage.xml --mpl tests | ||
imageName: ghcr.io/cfe-lab/gotoh_devcontainer | ||
cacheFrom: ghcr.io/cfe-lab/gotoh_devcontainer | ||
runCmd: cd ${{ github.workspace }}/ruby && rake test | ||
|
||
- name: Upload coverage reports to Codecov with GitHub Action | ||
uses: codecov/codecov-action@v3 | ||
uses: codecov/codecov-action@v5 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
root_dir: ${{ github.workspace }} | ||
files: ${{ github.workspace }}/coverage.xml | ||
files: ${{ github.workspace }}/ruby/coverage/coverage.xml |
This file was deleted.
Oops, something went wrong.