mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
37 lines
975 B
YAML
37 lines
975 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
paths-ignore:
|
|
- '**.md'
|
|
|
|
jobs:
|
|
nixpkgs-fmt:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: cachix/install-nix-action@v14
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
extra_nix_config: experimental-features = nix-command
|
|
- uses: actions/checkout@v2.4.0
|
|
- name: Check format
|
|
run: ./check-fmt
|
|
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
# os: [ubuntu-latest, macos-latest]
|
|
steps:
|
|
- uses: cachix/install-nix-action@v14
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
extra_nix_config: experimental-features = nix-command
|
|
- uses: actions/checkout@v2.4.0
|
|
- uses: cachix/cachix-action@v10
|
|
with:
|
|
name: poetry2nix
|
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
|
- run: nix-shell -p nix-build-uncached --run 'nix-build-uncached --keep-going --show-trace tests/default.nix'
|