Open akaihola opened 11 months ago
I managed to work around the problem like so:
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Download wheel uploaded by the build-wheel job
uses: actions/download-artifact@v3
- name: Run tests in nix-shell
run: |
nix-shell \
--pure \
--run '
python -m venv venv
source venv/bin/activate
cert_file=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
export NIX_SSL_CERT_FILE=$cert_file
pip install "${{needs.build-wheel.outputs.wheel-path}}[test]"
pytest
' \
./default.nix
So NIX_SSL_CERT_FILE
needed to be set inside the Nix shell environment.
I wonder if there's a more elegant way to make this work.
In this Linux build for the Graylint repository, as well as in the corresponding macOS build, when
pip
tries to usegit clone
to get a source tree, I get this error:Maybe related to
145
136