Skip to content

Commit

Permalink
Use latest Python & Actions, add token for codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Aug 28, 2024
1 parent 26f4a10 commit ffc6553
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
python-version: ['3.6', '3.8', '3.9', '3.10', '3.11']
os: [ubuntu-22.04]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
perl-version: [latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Perl ${{ matrix.perl-version }}
Expand All @@ -25,7 +25,7 @@ jobs:
perl-version: ${{ matrix.perl-version }}
- name: Install dependencies
run: |
pip install coverage scons
pip install coverage scons ihm
cpanm --quiet --notest --skip-satisfied Devel::Cover::Report::Codecov Test::Exception Test::Output Test::MockModule Devel::Cover MIME::Lite DBI CGI Error
# Patch Devel::Cover::Report::Codecov to support GitHub Actions
# from https://github.com/codecov/codecov-perl/pull/41
Expand All @@ -39,7 +39,11 @@ jobs:
run: |
scons coverage=true python=$(which python) test
- name: Upload Python coverage to codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload Perl coverage to codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
cover -report codecov

0 comments on commit ffc6553

Please sign in to comment.