Skip to content

add comment to update_stats.yml #40

add comment to update_stats.yml

add comment to update_stats.yml #40

Workflow file for this run

name: Tests
on: push
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
if: (github.repository == 'astropy/repo_stats')
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- name: Check out code
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install test dependencies
run: |
pip install setuptools --upgrade
pip install .[test]
- name: Install package
run: pip install .
- name: Run unit tests
run: |
mkdir -p test-reports
py.test -v --junitxml=test-reports/junit.xml test/*.py