-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.03 KB
/
devenv_test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
name: Test
on:
workflow_call:
secrets:
CODECOV_TOKEN:
required: true
pull_request:
branches: ["main"]
push:
branches:
- "main"
jobs:
test:
runs-on: ubuntu-latest
if: github.repository != 'atropos112/template-python-pkg'
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
- uses: actions/cache@v4
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v15
with:
name: devenv
- name: Install devenv.sh
run: nix profile install nixpkgs#devenv
- name: Run pre-commit hooks and tests
run: devenv test
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: atropos112/atro-core