Skip to content

Commit

Permalink
Fix release action for new pip contraint
Browse files Browse the repository at this point in the history
  • Loading branch information
benjeffery committed Oct 16, 2024
1 parent 98f7ffa commit 00c350b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
name: Release

on: push
on:
push:
branches: [main, test]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies and set path
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies and set up venv
run: |
sudo apt-get update
sudo apt-get install -y ninja-build libcunit1-dev python3-pip
# Install meson as root so we can install to the system below.
sudo pip install meson
sudo apt-get update
sudo apt-get install -y ninja-build libcunit1-dev
python -m venv venv
source venv/bin/activate
pip install meson
- name: Build tarball and changelogs
run: |
source venv/bin/activate
git rm -rf c/tests/meson-subproject
git config --global user.email "[email protected]"
git config --global user.name "Mr Robot"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
if: matrix.os == 'windows-latest'
run: |
rm -r lib
mkdir lib
mkdir--break-system-packages lib
cp -r --dereference ../c/subprojects lib/.
cp -r --dereference ../c/tskit lib/.
cp ../c/tskit.h lib/.
Expand Down

0 comments on commit 00c350b

Please sign in to comment.