Skip to content

Commit

Permalink
Merge pull request #109 from SNEWS2/mac_actions
Browse files Browse the repository at this point in the history
update actions
  • Loading branch information
KaraMelih authored Aug 13, 2024
2 parents ad61e17 + f0ad631 commit adbea15
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 21 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/mac12-py311-312.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches: [ main ]

pull_request:
branches:
- main

jobs:
build:
runs-on: macos-12
Expand Down Expand Up @@ -33,6 +37,15 @@ jobs:
# - name: Install hop-client
# run: conda install -c conda-forge hop-client

- name: Install hop-client
run: |
pip install setuptools wheel
wget https://files.pythonhosted.org/packages/64/d1/108cea042128c7ea7790e15e12e3e5ed595bfcf4b051c34fe1064924beba/hop-client-0.9.0.tar.gz
tar -xzf hop-client-0.9.0.tar.gz
cd hop-client-0.9.0
python setup.py install
cd $GITHUB_WORKSPACE
- name: Install requirements
run: |
python -m pip install --upgrade pip
Expand All @@ -52,6 +65,8 @@ jobs:
send "$PASSWORD\n"
expect "Hostname (may be empty):"
send "kafka.scimma.org\n"
expect "Token endpoint (empty if not applicable):"
send "\n"
expect eof
HOP
hop auth locate
Expand All @@ -65,4 +80,4 @@ jobs:
- name: Run pytest
run: |
pip install pytest
pytest
pytest snews_pt
17 changes: 16 additions & 1 deletion .github/workflows/mac13-py311-312.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches: [ main ]

pull_request:
branches:
- main

jobs:
build:
runs-on: macos-13
Expand Down Expand Up @@ -33,6 +37,15 @@ jobs:
# - name: Install hop-client
# run: conda install -c conda-forge hop-client

- name: Install hop-client
run: |
pip install setuptools wheel
wget https://files.pythonhosted.org/packages/64/d1/108cea042128c7ea7790e15e12e3e5ed595bfcf4b051c34fe1064924beba/hop-client-0.9.0.tar.gz
tar -xzf hop-client-0.9.0.tar.gz
cd hop-client-0.9.0
python setup.py install
cd $GITHUB_WORKSPACE
- name: Install requirements
run: |
python -m pip install --upgrade pip
Expand All @@ -52,6 +65,8 @@ jobs:
send "$PASSWORD\n"
expect "Hostname (may be empty):"
send "kafka.scimma.org\n"
expect "Token endpoint (empty if not applicable):"
send "\n"
expect eof
HOP
hop auth locate
Expand All @@ -65,4 +80,4 @@ jobs:
- name: Run pytest
run: |
pip install pytest
pytest
pytest snews_pt
17 changes: 16 additions & 1 deletion .github/workflows/mac14-py311-312.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
push:
branches: [ main ]

pull_request:
branches:
- main

jobs:
build:
runs-on: macos-14
Expand Down Expand Up @@ -34,6 +38,15 @@ jobs:
# - name: Install hop-client
# run: conda install -c conda-forge hop-client

- name: Install hop-client
run: |
pip install setuptools wheel
wget https://files.pythonhosted.org/packages/64/d1/108cea042128c7ea7790e15e12e3e5ed595bfcf4b051c34fe1064924beba/hop-client-0.9.0.tar.gz
tar -xzf hop-client-0.9.0.tar.gz
cd hop-client-0.9.0
python setup.py install
cd $GITHUB_WORKSPACE
- name: Install requirements
run: |
python -m pip install --upgrade pip
Expand All @@ -53,6 +66,8 @@ jobs:
send "$PASSWORD\n"
expect "Hostname (may be empty):"
send "kafka.scimma.org\n"
expect "Token endpoint (empty if not applicable):"
send "\n"
expect eof
HOP
hop auth locate
Expand All @@ -66,4 +81,4 @@ jobs:
- name: Run pytest
run: |
pip install pytest
pytest
pytest snews_pt
18 changes: 0 additions & 18 deletions snews_pt/test/test_subscribe.py

This file was deleted.

0 comments on commit adbea15

Please sign in to comment.