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 git metadata for setuptools_scm #28

Merged
merged 1 commit into from
Jan 29, 2021
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
12 changes: 8 additions & 4 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
ref: main
repository: tskit-dev/msprime
submodules: true
fetch-depth: 0 # Needed for setuptools_scm to work correctly

- name: Get commit SHA1 for cache
run: git rev-parse HEAD > SHA1
Expand All @@ -85,15 +86,15 @@ jobs:
name: Docs cache
with:
path: dist
key: msprime-docs-v5-${{ hashFiles('SHA1') }}
key: msprime-docs-v6-${{ hashFiles('SHA1') }}

- name: Install GSL
if: steps.docs-cache.outputs.cache-hit != 'true'
run: sudo apt-get install -y libgsl0-dev

- uses: actions/setup-python@v2
if: steps.docs-cache.outputs.cache-hit != 'true'
name: Setup Pyton
name: Setup Python
with:
python-version: 3.8

Expand Down Expand Up @@ -123,7 +124,9 @@ jobs:
run: |
venv-latest/bin/activate
cd docs
make
make dist
# make dist changes the _conf.yml file to write the version number, so drop the change
git checkout .

- name: Copy docs
if: steps.docs-cache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -192,6 +195,7 @@ jobs:
ref: main
repository: tskit-dev/tskit
submodules: true
fetch-depth: 0 # Needed for setuptools_scm to work correctly

- name: Get commit SHA1 for cache
run: git rev-parse HEAD > SHA1
Expand Down Expand Up @@ -366,4 +370,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.ADMINBOT_TOKEN }}
BRANCH: gh-pages
FOLDER: site
SINGLE_COMMIT: true
SINGLE_COMMIT: true