fix(ci): make test job dependent on the build job #194
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Build | |
on: | |
push: | |
branches: | |
- '*' | |
tags: | |
- '*' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
env: | |
TZ: UTC | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3.1.0 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: Setup Nix cache | |
uses: DeterminateSystems/magic-nix-cache-action@v1 | |
- name: Check code integrity | |
run: nix develop --command make check | |
- name: Check docs | |
run: nix develop --command make docs | |
- name: Check REUSE compliance | |
run: nix-shell -p reuse --run "reuse lint" | |
- name: Build Release Package | |
run: | | |
echo "Building packge" | |
nix develop --command make build | |
- name: Upload the artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: python-build-artifacts | |
path: dist/ |