From 4a50701a38fd0e97bd093c77cee634c0b5b4c29e Mon Sep 17 00:00:00 2001 From: Nicolas Legrand Date: Fri, 17 Feb 2023 12:04:17 +0100 Subject: [PATCH] Update Github actions to work with codecov (#30) --- .github/workflows/docs.yml | 6 +++--- .github/workflows/linting.yml | 13 +++++++++---- .github/workflows/test.yml | 13 +++++++++---- codecov.yml | 0 4 files changed, 21 insertions(+), 11 deletions(-) delete mode 100644 codecov.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7186db532..53c2ded25 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -6,7 +6,7 @@ on: - master pull_request: branches: - - master + - "*" permissions: contents: write @@ -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: | diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 31334f2f4..757af55ee 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -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 }} @@ -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/ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a22931cc1..e297c678c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 }} @@ -30,4 +35,4 @@ jobs: run: | pytest --cov=./ --cov-report=xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2.1.0 \ No newline at end of file + uses: codecov/codecov-action@v3 \ No newline at end of file diff --git a/codecov.yml b/codecov.yml deleted file mode 100644 index e69de29bb..000000000