Skip to content

Commit

Permalink
Merge remote-tracking branches 'origin/dependabot/npm_and_yarn/*'
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed May 13, 2021
5 parents cdea6d9 + 2c9ad23 + 118d9b9 + 088e3ce + 14694a5 commit a943f4f
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 29 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ jobs:
- name: "tests"
run: |
npm run test
- uses: iterative/setup-dvc@v1
with:
version: '1.0.1'
Expand All @@ -48,7 +47,6 @@ jobs:
if [ $DVC_VER != '1.0.1' ]; then
exit 1
fi
- uses: iterative/setup-dvc@v1
with:
version: latest
Expand Down
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@

![DVC](https://user-images.githubusercontent.com/414967/90413385-a8d9d180-e0ae-11ea-9ed7-a9155a3b48f0.png)

[DVC](https://dvc.org/) is an open-source Version Control System for Machine
Learning Projects. [DVC](https://dvc.org/) is built to make ML models shareable
and reproducible. It is designed to handle large files, data sets, machine
learning models, and metrics as well as code.
Data version control ([DVC](https://dvc.org/)) is open-source, Git version control for machine learning projects. Benefits include:
- Reproducible and shareable machine learning models and pipelines
- Git version large datasets and models without Git-LFS
- Git diffs for model and data metrics across commits, tags and branches

The [iterative/setup-dvc](https://github.com/iterative/setup-dvc) action is a
JavaScript action that sets up [DVC](https://dvc.org/) in your GitHub Actions
workflow. It installs the specified version by `version` action input parameter.
JavaScript action that sets up [DVC](https://dvc.org/) in your
workflow.

## Usage

This action can be run on `ubuntu-latest`, `macos-latest`, `windows-latest`.
When running on `windows-latest` python3 is needed in order to set up the
action.
When running on `windows-latest`, Python 3 is a dependency that should be setup first (and [there's an action for that](https://github.com/actions/setup-python)).

Basic:
Basic usage:

```yaml
steps:
Expand All @@ -39,7 +38,7 @@ steps:
- uses: iterative/setup-dvc@v1
```
A specific version can be pinned to your workflow.
A specific version can be pinned to your workflow using the `version` argument.

```yaml
steps:
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ const download = async (url, path) => {
};

const get_latest_version = async () => {
const endpoint = 'https://api.github.com/repos/iterative/dvc/releases/latest';
const endpoint = 'https://updater.dvc.org';
const response = await fetch(endpoint, { method: 'GET' });
const { tag_name } = await response.json();
const { version } = await response.json();

return tag_name;
return version;
};

const setup_dvc = async opts => {
Expand All @@ -57,7 +57,9 @@ const setup_dvc = async opts => {
'dvc.deb'
);
console.log(
await exec(`${sudo} dpkg -i 'dvc.deb' && ${sudo} rm -f 'dvc.deb'`)
await exec(
`${sudo} apt update && ${sudo} apt install -y git ./dvc.deb && ${sudo} rm -f 'dvc.deb'`
)
);
}

Expand Down

0 comments on commit a943f4f

Please sign in to comment.