diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2e4119a..aaa54f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} @@ -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 @@ -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