Skip to content

Commit

Permalink
WIP: added the CI configuration from the Phylowatch repo as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Liang committed Nov 15, 2024
1 parent 1a1342a commit a5b9841
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Automated Tests

on: ["push"]

jobs:
build:
runs-on: [self-hosted]
steps:
- uses: actions/checkout@v3
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
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
root_dir: ${{ github.workspace }}
files: ${{ github.workspace }}/coverage.xml

0 comments on commit a5b9841

Please sign in to comment.