Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
ci: make it run again... (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Feb 13, 2023
1 parent 6a84389 commit a55dac8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 27 deletions.
30 changes: 3 additions & 27 deletions .github/workflows/ci-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: CI testing
on:
# Trigger the workflow on push or pull request, but only for the master branch
push:
branches: [main]
branches: [main, "ci/*"]
pull_request:
branches: [main]

Expand All @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macOS-10.15, windows-2019]
os: [ubuntu-20.04, macOS-10.15]
python-version: [3.8]

# Timeout: https://stackoverflow.com/a/59076067/4521646
Expand All @@ -28,30 +28,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

# Github Actions: Run step on specific OS: https://stackoverflow.com/a/57948488/4521646
- name: Setup macOS
if: runner.os == 'macOS'
run: |
brew install libomp # https://github.com/pytorch/pytorch/issues/20030
# Note: This uses an internal pip API and may not always work
# https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow
- name: Get pip cache
id: pip-cache
run: |
python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)"
- name: Cache pip
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-py${{ matrix.python-version }}-
- name: Install Lightning
run: |
pip install lightning
shell: bash

- name: Install dependencies
run: |
python --version
Expand All @@ -63,7 +39,7 @@ jobs:

- name: Tests
run: |
coverage run --source hp_space_generator -m py.test hp_space_generator tests -v --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}.xml
coverage run --source hp_space_generator -m pytest hp_space_generator tests -v
- name: Statistics
if: success()
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ray[tune]==1.12.1
scikit-learn==1.1.1
streamlit==1.9.0
lightning>=1.9.0, <2.0.0

0 comments on commit a55dac8

Please sign in to comment.