Просмотр исходного кода

Try to get coveralls working again

tags/v0.7.1
Ben Kurtovic 1 год назад
Родитель
Сommit
2a04a68930
3 измененных файлов: 3 добавлений и 2 удалений
  1. +1
    -0
      .github/workflows/build.yml
  2. +1
    -1
      pyproject.toml
  3. +1
    -1
      scripts/save_coverage.py

+ 1
- 0
.github/workflows/build.yml Просмотреть файл

@@ -45,6 +45,7 @@ jobs:
uses: coverallsapp/github-action@v2 uses: coverallsapp/github-action@v2
with: with:
files: ${{ steps.get-coverage-files.outputs.files }} files: ${{ steps.get-coverage-files.outputs.files }}
format: lcov


build-sdist: build-sdist:
name: Build source distribution name: Build source distribution


+ 1
- 1
pyproject.toml Просмотреть файл

@@ -78,7 +78,7 @@ environment-pass = ["RUNNER_OS"]
test-groups = ["dev"] test-groups = ["dev"]
test-command = [ test-command = [
'python -c "import mwparserfromhell.parser._tokenizer"', 'python -c "import mwparserfromhell.parser._tokenizer"',
"pytest {project}/tests -rxs --cov=mwparserfromhell",
"pytest {project}/tests -rxs --cov=mwparserfromhell --cov-report=lcov:coverage.lcov",
"python {project}/scripts/save_coverage.py", "python {project}/scripts/save_coverage.py",
] ]




+ 1
- 1
scripts/save_coverage.py Просмотреть файл

@@ -8,6 +8,6 @@ import uuid
try: try:
if os.getenv("RUNNER_OS") == "Linux": if os.getenv("RUNNER_OS") == "Linux":
os.makedirs("/output", exist_ok=True) os.makedirs("/output", exist_ok=True)
shutil.move(".coverage", f"/output/coverage.{uuid.uuid4().hex}")
shutil.move("coverage.lcov", f"/output/coverage.{uuid.uuid4().hex}.lcov")
except Exception: except Exception:
traceback.print_exc() traceback.print_exc()

Загрузка…
Отмена
Сохранить