Skip to content

Commit

Permalink
Update Github actions to work with codecov (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
LegrandNico authored Feb 17, 2023
1 parent 053bc0e commit 4a50701
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master
pull_request:
branches:
- master
- "*"
permissions:
contents: write

Expand All @@ -17,10 +17,10 @@ jobs:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Set up Python 3.9
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: '3.10'

- name: Build
run: |
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
name: Linting

on: [pull_request]

on:
push:
branches:
- master
pull_request:
branches:
- "*"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: ['3.10']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -24,7 +29,7 @@ jobs:
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install isort==5.10.1 flake8 black==22.12.0 mypy==0.991
pip install isort==5.10.1 flake8 black==22.12.0
- name: Run tests and coverage
run: |
flake8 ./pyhgf/
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
name: Test

on: [pull_request]

on:
push:
branches:
- master
pull_request:
branches:
- "*"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10']
python-version: ['3.10']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -30,4 +35,4 @@ jobs:
run: |
pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2.1.0
uses: codecov/codecov-action@v3
Empty file removed codecov.yml
Empty file.

0 comments on commit 4a50701

Please sign in to comment.