Skip to content

Moved to v3 of upload-pages-artifact #56

Moved to v3 of upload-pages-artifact

Moved to v3 of upload-pages-artifact #56

Workflow file for this run

name: Tests
on:
push:
branches: [ main, development ]
pull_request:
branches: [ main, development ]
jobs:
test:
runs-on: ubuntu-22.04
timeout-minutes: 60
strategy:
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.6.0'
- name: Configure npm for GitHub Packages
run: |
echo "//github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc
echo "@satishlokkoju:registry=https://npm.pkg.github.com" >> ~/.npmrc
- name: Install dependencies
timeout-minutes: 30
run: |
python -m pip install --upgrade pip
make install
- name: Run tests
timeout-minutes: 45
run: |
python -m pytest --junit-xml=test-results.xml --runslow --durations=10
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results-${{ matrix.python-version }}
path: |
test-results.xml
coverage/**
junit.xml
retention-days: 14
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.xml
fail_ci_if_error: true