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

Check if push to tag works #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
110 changes: 55 additions & 55 deletions .github/workflows/mamba.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
name: Mamba tests
# name: Mamba tests

on:
push:
branches: [master]
pull_request:
# on:
# push:
# branches: [master]
# pull_request:

jobs:
mamba_test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
# jobs:
# mamba_test:
# strategy:
# matrix:
# os: [ubuntu-latest, windows-latest]

runs-on: ${{ matrix.os }}
# runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
# steps:
# - uses: actions/checkout@v2

- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
# - name: Set up Python 3.7
# uses: actions/setup-python@v2
# with:
# python-version: 3.7

- name: Upgrade pip
run: |
python3 -m pip install --upgrade pipenv
# - name: Upgrade pip
# run: |
# python3 -m pip install --upgrade pipenv

# Pipenv doesn't support specifying global options. See:
#
# https://github.com/pypa/pipenv/issues/2208
#
# We want to make sure that we're testing pure python dulwich,
# since that's what the users will be using.
#
# We only want to install dulwich via the `-r requirements.txt`
# method, since the presence of any non-default option causes pip
# to avoid using wheels for all the other dependencies, which
# slows down the build considerably (and breaks it on Windows). I
# don't think that any of our other current dependencies might
# potentially use binary wheels, so in this case using wheels is
# probably safe. (Besides, AFAIK we didn't have any issues
# specifically caused by a dependency other than dulwich (see
# #138, so testing the other dependencies isn't a focus.)
#
# Unfortunately, I didn't manage to get process substitution
# (`<()`) to work, within GitHub actions, so I'm writing
# requirements.txt to a file.
- name: Write dulwich version to requirements.txt
shell: bash
run: |
pipenv lock -r | sed -nE 's/(^dulwich==.+$)/\1 --global-option=--pure/p' > requirements.txt
# # Pipenv doesn't support specifying global options. See:
# #
# # https://github.com/pypa/pipenv/issues/2208
# #
# # We want to make sure that we're testing pure python dulwich,
# # since that's what the users will be using.
# #
# # We only want to install dulwich via the `-r requirements.txt`
# # method, since the presence of any non-default option causes pip
# # to avoid using wheels for all the other dependencies, which
# # slows down the build considerably (and breaks it on Windows). I
# # don't think that any of our other current dependencies might
# # potentially use binary wheels, so in this case using wheels is
# # probably safe. (Besides, AFAIK we didn't have any issues
# # specifically caused by a dependency other than dulwich (see
# # #138, so testing the other dependencies isn't a focus.)
# #
# # Unfortunately, I didn't manage to get process substitution
# # (`<()`) to work, within GitHub actions, so I'm writing
# # requirements.txt to a file.
# - name: Write dulwich version to requirements.txt
# shell: bash
# run: |
# pipenv lock -r | sed -nE 's/(^dulwich==.+$)/\1 --global-option=--pure/p' > requirements.txt

- name: Install pure dulwich from requirements.txt
run: |
pipenv run pip install -r requirements.txt
# - name: Install pure dulwich from requirements.txt
# run: |
# pipenv run pip install -r requirements.txt

- name: Install all other dependencies
shell: bash
run: |
pipenv install --dev
# - name: Install all other dependencies
# shell: bash
# run: |
# pipenv install --dev

# TODO Run each test separately? (See: #145.)
- name: Run tests
run: |
pipenv run mamba ./
# # TODO Run each test separately? (See: #145.)
# - name: Run tests
# run: |
# pipenv run mamba ./
64 changes: 64 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Release beta

on:
push:
# tags: ['v[0-9.]+-beta[0-9.]+']
tags:
- 'v[0-9]+.[0-9]+-experiment*'
- 'v[0-9]+.[0-9]+.[0-9]+-experiment*'
# e.g. v0.9-experiment.0.0

jobs:
release_beta:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

# - name: Set up Python 3.7
# uses: actions/setup-python@v2
# with:
# python-version: 3.7

# - name: Upgrade pip
# run: |
# python3 -m pip install --upgrade pipenv

# # Pipenv doesn't support specifying global options. See:
# #
# # https://github.com/pypa/pipenv/issues/2208
# #
# # We want to make sure that we're testing pure python dulwich,
# # since that's what the users will be using.
# #
# # We only want to install dulwich via the `-r requirements.txt`
# # method, since the presence of any non-default option causes pip
# # to avoid using wheels for all the other dependencies, which
# # slows down the build considerably (and breaks it on Windows). I
# # don't think that any of our other current dependencies might
# # potentially use binary wheels, so in this case using wheels is
# # probably safe. (Besides, AFAIK we didn't have any issues
# # specifically caused by a dependency other than dulwich (see
# # #138, so testing the other dependencies isn't a focus.)
# #
# # Unfortunately, I didn't manage to get process substitution
# # (`<()`) to work, within GitHub actions, so I'm writing
# # requirements.txt to a file.
# - name: Write dulwich version to requirements.txt
# shell: bash
# run: |
# pipenv lock -r | sed -nE 's/(^dulwich==.+$)/\1 --global-option=--pure/p' > requirements.txt

# - name: Install pure dulwich from requirements.txt
# run: |
# pipenv run pip install -r requirements.txt

# - name: Install all other dependencies
# shell: bash
# run: |
# pipenv install --dev

# # TODO Run each test separately? (See: #145.)
# - name: Run tests
# run: |
# pipenv run mamba ./