Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Upgrade to bswck/skeleton@0.0.2rc-83-g3b14b33 #56

Upgrade to bswck/skeleton@0.0.2rc-83-g3b14b33

Upgrade to bswck/skeleton@0.0.2rc-83-g3b14b33 #56

Workflow file for this run

# This file was generated from bswck/skeleton@0.0.2rc-83-g3b14b33.
# Instead of changing this particular file, you might want to alter the template:
# https://github.com/bswck/skeleton/tree/0.0.2rc-83-g3b14b33/project/.github/workflows/%23%25%20if%20tests%20%25%23test.yml%23%25%20endif%20%25%23.jinja
# IMPORTANT!
# Pinned versions of actions and Poetry are managed in a different repository.
# Do not submit PRs to this file unless for this repo specifically.
# To change this workflow globally, submit a PR to https://github.com/bswck/skeleton.
name: "Tests"
on: ["push"]
jobs:
test:
runs-on: "${{matrix.os}}-latest"
environment: "Test"
strategy:
fail-fast: false
matrix:
os: ["ubuntu", "macos", "windows"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.8", "pypy3.9", "pypy3.10"]
env:
context: "${{python-version}}-${{os}}"

Check failure on line 24 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Tests

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 24, Col: 16): Unrecognized named-value: 'python-version'. Located at position 1 within expression: python-version
timeout-minutes: 10
steps:
- uses: "actions/checkout@v4"
- name: "Install Poetry"
run: "pipx install poetry==1.7.1"
- name: "Set up Python ${{matrix.python-version}}"
uses: "actions/setup-python@v5"
with:
python-version: "${{matrix.python-version}}"
cache: "poetry"
- name: "Install the project"
run: "poetry install"
- name: "Run tests"
env:
PY_COLORS: 1 # Thanks @zanieb!
run: >
poetry run pytest
--cov-context=${{env.context}}
--cov-report=term:skip-covered
--doctest-only
-v .
- name: "Upload coverage data file artifact"
uses: "actions/upload-artifact@v4"
with:
name: "coverage-${{env.context}}"
path: ".coverage"
overwrite: true