Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NixOS build #71

Merged
merged 2 commits into from
Nov 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/package-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Build wheel distribution
run: python setup.py bdist_wheel
- name: Upload wheel for other jobs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
Expand Down Expand Up @@ -59,15 +59,15 @@ jobs:
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Download wheel uploaded by the build-wheel job
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.7
- name: Run tests in nix-shell
run: |
nix-shell \
--pure \
--run '
python -m venv venv
source venv/bin/activate
cert_file=/etc/ssl/certs/ca-certificates.crt
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]"
# Run tests in installed package to avoid plugin import issue:
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Download wheel uploaded by the build-wheel job
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.7
- name: Install Graylint and its dependencies from the wheel built earlier
run: pip install "${{needs.build-wheel.outputs.wheel-path}}[test]"
${{ matrix.upgrade }} ${{ matrix.constraints }}
Expand All @@ -146,7 +146,7 @@ jobs:
- name: Install twine
run: python -m pip install twine
- name: Download wheel uploaded by the build-wheel job
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.7
- name: Build source distribution
run: python setup.py sdist
- name: Validate distributions
Expand Down
Loading