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 and simplify release process #183

Merged
merged 6 commits into from
Nov 4, 2022
Merged
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
8 changes: 6 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Upload Python Package to PyPI

on:
release:
types: [created]
push:
tags:
- "v*"

env:
PY_COLORS: 1
Expand All @@ -16,6 +17,9 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fail if not on 'master' branch
if: github.ref != 'refs/heads/master'
run: exit -1
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
path: .tox
- name: Lint Code
run: tox -e linting
continue-on-error: true
- name: Check Type Hints
run: tox -e type-checking
docs:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- Simplified and fixed publishing to PyPI from CI
[PR #183](https://github.com/appliedAI-Initiative/pyDVL/pull/183)
- Simplified and fixed powerset sampling and testing
[PR #181](https://github.com/appliedAI-Initiative/pyDVL/pull/181)

Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import functools
from collections import OrderedDict, defaultdict
from typing import Dict, TYPE_CHECKING, Optional, Sequence, Tuple, Type
from typing import TYPE_CHECKING, Dict, Optional, Sequence, Tuple, Type

import numpy as np
import pytest
Expand Down