Skip to content

fix testing workflow #128

fix testing workflow

fix testing workflow #128

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
# Build and test
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install the latest version of rye
uses: eifinger/setup-rye@v1
- name: Sync Rye
run: |
rye pin ${{ matrix.python-version }}
rye sync
- name: Run Tests
run: rye run test
- name: Run Lint on one python
run: echo matrix.python-version
# if: matrix.python-version == "3.12"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
if: github.repository_owner == 'galactic-forensics'