Skip to content

Commit

Permalink
Bump actions/upload-artifact from 3 to 4 (#344)
Browse files Browse the repository at this point in the history
* Bump actions/upload-artifact from 3 to 4

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* format ci.yml

* use download-artifact v4

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: farmio <[email protected]>
  • Loading branch information
dependabot[bot] and farmio authored Jan 21, 2024
1 parent 73088e1 commit 5e8d177
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,64 +6,64 @@ on:
- main
pull_request:
branches:
- '**' # run on all branches
- "**" # run on all branches

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
requirements_production.txt
requirements_testing.txt
.pre-commit-config.yaml
- name: Install dependencies
run: |
pip install -r requirements_testing.txt
- name: CI
run: |
tox
- name: Upload coverage artifact
uses: actions/upload-artifact@v3
with:
name: coverage-${{ matrix.python-version }}
path: .coverage
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: |
requirements_production.txt
requirements_testing.txt
.pre-commit-config.yaml
- name: Install dependencies
run: |
pip install -r requirements_testing.txt
- name: CI
run: |
tox
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.python-version }}
path: .coverage

coverage:
name: Process test coverage
runs-on: ubuntu-latest
needs: ["build"]
strategy:
matrix:
python-version: ["3.11"]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
requirements_production.txt
requirements_testing.txt
.pre-commit-config.yaml
- name: Install dependencies
run: |
pip install -r requirements_testing.txt
- name: Download all coverage artifacts
uses: actions/download-artifact@v3
- name: Create coverage report
run: |
coverage combine coverage*/.coverage*
coverage report
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: |
requirements_production.txt
requirements_testing.txt
.pre-commit-config.yaml
- name: Install dependencies
run: |
pip install -r requirements_testing.txt
- name: Download all coverage artifacts
uses: actions/download-artifact@v4
- name: Create coverage report
run: |
coverage combine coverage-*/.coverage
coverage report
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

0 comments on commit 5e8d177

Please sign in to comment.