Skip to content

fix(action): use devenv test #285

fix(action): use devenv test

fix(action): use devenv test #285

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python application
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
jobs:
build:
strategy:
matrix:
operating-system: ["ubuntu-latest"]
runs-on: ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
- uses: cachix/cachix-action@v15
with:
name: devenv
- name: Install devenv.sh
run: nix profile install nixpkgs#devenv
- name: Run Tests and Coverage
run: devenv test
# run: devenv shell pytestcoverage
#
# - name: Publish Coverage on CodeClimate
# uses: paambaati/[email protected]
# env:
# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
# with:
# coverageLocations: |
# ${{ github.workspace }}/coverage.xml:coverage.py
# debug: true
#
# - name: Publish Coverage on Codacy
# uses: codacy/[email protected]
# with:
# project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
# api-token: ${{ secrets.CODACY_API_TOKEN }}
# coverage-reports: ${{ github.workspace }}/coverage.xml