Skip to content

Commit

Permalink
Changed workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
remytuyeras authored Aug 29, 2023
1 parent a71f063 commit 2f311e1
Showing 1 changed file with 25 additions and 15 deletions.
40 changes: 25 additions & 15 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
name: HaploDynamics check

on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]

name: Workflow for Codecov example-python
on: [push, pull_request]
jobs:
build:
run:
runs-on: ubuntu-latest

steps:
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests and collect coverage
run: pytest --cov .
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage reports to Codecov
run: |
# Replace `linux` below with the appropriate OS
# Options are `alpine`, `linux`, `macos`, `windows`
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN}

0 comments on commit 2f311e1

Please sign in to comment.