Skip to content

Commit

Permalink
Refactor GitHub Actions workflows: remove deprecated python-tests.yml…
Browse files Browse the repository at this point in the history
… and enhance python-tests-and-publish.yml with system dependencies installation and updated pip install command
  • Loading branch information
dxns-hub committed Dec 5, 2024
1 parent aba1864 commit 2f7b56f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 56 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/python-tests-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
test:
runs-on: self-hosted # This line specifies to use your self-hosted runner
runs-on: self-hosted
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
Expand All @@ -23,10 +23,14 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential gcc gfortran
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install --only-binary=numpy,scipy -r requirements.txt
- name: Install test dependencies
run: |
Expand Down Expand Up @@ -67,4 +71,4 @@ jobs:
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
twine upload dist/*
53 changes: 0 additions & 53 deletions .github/workflows/python-tests.yml

This file was deleted.

0 comments on commit 2f7b56f

Please sign in to comment.