Skip to content

Commit

Permalink
swig
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Sep 16, 2024
1 parent d2c3f6d commit 12aec30
Showing 1 changed file with 8 additions and 26 deletions.
34 changes: 8 additions & 26 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"

- name: Set min. dependencies
if: matrix.requires == 'oldest'
Expand All @@ -53,15 +54,11 @@ jobs:
open(fpath, 'w').write(req)
shell: python

- name: Get pip cache dir
id: pip-cache
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: Restore pip cache
uses: actions/cache/restore@v4
id: restore-cache
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: pip-dependencies
- name: Setup macOS
if: runner.os == 'macOS'
run: |
brew update
brew install swig
- name: Install package
run: |
Expand All @@ -84,13 +81,6 @@ jobs:
pip install -r requirements/devel.txt -U -q -f ${TORCH_URL}
pip list
- name: Save pip cache
if: github.ref == 'refs/heads/master'
uses: actions/cache/save@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: pip-dependencies

- name: Cache datasets
id: cache-datasets
uses: actions/cache@v4
Expand All @@ -110,24 +100,16 @@ jobs:
working-directory: _datasets/
run: python -m atari_py.import_roms ROMS

- name: Restore HF cache
uses: actions/cache/restore@v4
- name: HF cache
uses: actions/cache@v4
with:
path: ${{ env.TRANSFORMERS_CACHE }}
key: cache-transformers

- name: Testing
run: python -m pytest tests -v --cov=pl_bolts --timeout=200

- name: Save HF cache
if: github.ref == 'refs/heads/master'
uses: actions/cache/save@v4
with:
path: ${{ env.TRANSFORMERS_CACHE }}
key: cache-transformers

- name: Statistics
if: success()
run: |
coverage report
coverage xml
Expand Down

0 comments on commit 12aec30

Please sign in to comment.