poetry2nix/.github/workflows/ci.yml

36 lines
842 B
YAML
Raw Normal View History

2020-04-08 16:39:06 +12:00
name: CI
on:
pull_request:
push:
paths-ignore:
- '**.md'
jobs:
2020-04-15 14:21:28 +01:00
nixpkgs-fmt:
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@v13
with:
nix_path: nixpkgs=channel:nixos-unstable
2020-04-15 14:21:28 +01:00
- uses: actions/checkout@v1
- name: Check format
run: ./check-fmt
2020-04-08 16:39:06 +12:00
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
# os: [ubuntu-latest, macos-latest]
steps:
- uses: cachix/install-nix-action@v13
with:
nix_path: nixpkgs=channel:nixos-unstable
2020-04-08 16:39:06 +12:00
- uses: actions/checkout@v1
2020-11-24 19:37:14 +01:00
- uses: cachix/cachix-action@v8
2020-04-15 14:21:28 +01:00
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'