Skip to content

Commit

Permalink
(actions) one file
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Mar 12, 2024
1 parent 6d90287 commit 872774f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 22 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/python-3.10.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Python 3.10
name: Python

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
on: [pull_request, push, workflow_dispatch]

jobs:
build:
Expand All @@ -13,12 +9,12 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -27,9 +23,10 @@ jobs:
pip install -r tests/actions_requirements.txt
- name: Test with pytest
run: |
python3 --version || python --version
python --version
echo "import tests.actions_test" > test.py
coverage run --source models,examples test.py && coverage report
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
if: ${{ matrix.python-version == '3.12' }}
23 changes: 11 additions & 12 deletions tests/actions_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
numpy==1.23.3
requests==2.25.1
torch==1.13.1
torchvision==0.14.1
Pillow==9.4.0
opencv-python>=4.1.0
scipy==1.9.1
pandas==1.4.4
coverage==4.5.3
codecov==2.0.15
numpy==1.26.3
requests==2.31.0
torch==2.2.1
torchvision==0.17.1
Pillow==10.2.0
opencv-python>=4.9.0
scipy==1.12.0
pandas==2.2.1
coverage==7.4.3
codecov==2.1.13
jupyter>=1.0.0
tensorboard>=1.14.0
future>=0.17.1
tensorboard>=2.16.2
./

0 comments on commit 872774f

Please sign in to comment.