Skip to content

Re-aligns project history and CI #41

Re-aligns project history and CI

Re-aligns project history and CI #41

Workflow file for this run

name: Test
on:
push:
branches:
- '*'
pull_request:
branches:
- main
workflow_call:
jobs:
test:
runs-on: ${{ matrix.os }}
env:
ACTIONS_STEP_DEBUG: true
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: |
python -m pip install --upgrade pip
python -m pip install poetry
- name: Install project dependencies
run: |
poetry install
- name: Get Python version for tox
run: |
stripped_py_version=$(echo "${{ matrix.python-version }}" | tr -d '.')
echo "py_version=$stripped_py_version" >> $GITHUB_ENV
id: py_version
- name: Run tests
env:
SKIP_LOAD_TEST: "true"
run: |
poetry run tox -e py${{ env.py_version }}
- name: Upload coverage reports to Codecov
if: github.ref == 'refs/heads/main' # Only run this step if it's the main branch
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: idjaw/edunet