Skip to content
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
31 changes: 11 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,26 @@ jobs:
fail-fast: false
matrix:
python-version: ['2.7', '3.7', '3.10']
nomad-version: ['1.0.0', '1.1.18']

nomad-version: ['1.0.18', '1.1.18', '1.2.14', '1.3.7', '1.4.2']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup Nomad ${{ matrix.nomad-version }}
env:
NOMAD_VERSION: ${{ matrix.nomad-version }}
shell: bash
run: |
echo $NOMAD_VERSION
echo ${NOMAD_VERSION}
echo $NOMAD_VERSION
echo ${NOMAD_VERSION}

echo "downloading nomad"
curl -L -o /tmp/nomad_${NOMAD_VERSION}_linux_amd64.zip https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_linux_amd64.zip
echo "downloading nomad"
curl -L -o /tmp/nomad_${NOMAD_VERSION}_linux_amd64.zip https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_linux_amd64.zip

echo "unzip nomad"
unzip -d /tmp /tmp/nomad_${NOMAD_VERSION}_linux_amd64.zip
echo "unzip nomad"
unzip -d /tmp /tmp/nomad_${NOMAD_VERSION}_linux_amd64.zip

echo "starting nomad server"
/tmp/nomad agent -dev -bind ${NOMAD_IP} -node pynomad1 --acl-enabled > /dev/null 2>&1 &
Expand All @@ -58,9 +57,8 @@ jobs:
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ $PYTHON_VERSION = "2.7" ]
then
pip install -r requirements-dev-py27.txt
if [ $PYTHON_VERSION = "2.7" ]; then
pip install -r requirements-dev-py27.txt
else
pip install -r requirements-dev.txt
fi
Expand All @@ -82,13 +80,6 @@ jobs:
run: |
python -m pip install build
python -m build --sdist --wheel
- name: Publish Test PyPi
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
- name: Publish/Release Package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Unreleased
* Add `namespace` agrument support for `get_allocations` and `get_deployments` endpoints (#133)
* Add Python 3.10 support (#133)
* Add support for pre-populated Sessions (#132)
* Add scaling policy endpoint (#136)
2 changes: 1 addition & 1 deletion requirements-dev-py27.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
coverage==5.2.1
pytest==4.6.11
pytest-cov==2.12.1
mkdocs==1.2.3
mkdocs==1.0.4
mock==1.2.0
flaky==3.7.0
responses==0.13.4