Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Commit

Permalink
#60: Migration from Travis CI to Github CI - release rkd and rkd_pyth…
Browse files Browse the repository at this point in the history
…on at once
  • Loading branch information
blackandred committed Nov 25, 2020
1 parent 7a60945 commit bd8f444
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/test-and-release-rkd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: "pip install -r ./requirements.txt && pip install -r ./requirements-dev.txt"
run: "pip install -r ./requirements.txt && pip install -r ./requirements-dev.txt && pip install -r ./subpackages/rkd_python/requirements.txt"

- name: Build project
run: "make package"

- name: Run tests on Python ${{ matrix.python-version }}
- name: Run RKD tests on Python ${{ matrix.python-version }}
run: "make tests"

- name: Run rkd_python tests on Python ${{ matrix.python-version }}
run: "cd subpackages/rkd_python && make tests"

release:
needs: [test]
runs-on: ubuntu-20.04
Expand All @@ -47,5 +50,8 @@ jobs:
- name: Install dependencies
run: "pip install -r ./requirements.txt && pip install -r ./requirements-dev.txt && pip install -r ./subpackages/rkd_python/requirements.txt"

- name: Release to PyPI
- name: Release RKD to PyPI
run: "make release PYPI_TOKEN=${{ secrets.PYPI_TOKEN }}"

- name: Release rkd_python to PyPI
run: "cd subpackages/rkd_python && make release PYPI_TOKEN=${{ secrets.PYPI_TOKEN }}"
5 changes: 3 additions & 2 deletions subpackages/rkd_python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
# https://github.com/riotkit-org/riotkit-do/issues/5
#
TEST_OPTS=
PYTHONPATH = $(shell echo "$$(pwd)/src:$$(pwd)/../../")
PYTHONPATH = $(shell echo "$$(pwd):$$(pwd)/../../")

## Run tests
tests:
tests: |
export PYTHONPATH=${PYTHONPATH}; \
python3 -u -m unittest discover -s ./test ${TEST_OPTS}

## Release
Expand Down

0 comments on commit bd8f444

Please sign in to comment.